| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:17 pm Post subject: VDS IDE Mimimized??? |
|
|
Greetings everyone,
I'd like to know if anyone else has ever tried finding out the status of the
VDS IDE through your vds program? I've tried, and when vds is mimized,
it does not report as being minimized using the code below:
| Code: | If @equal(@winpos(#TMainWin,S),2)
Info VDS Is Mimimized
End
If @equal(@winpos(#TMainWin,S),1)
Info VDS Is In View
End |
Does anyone have any other suggestions that might help me detect when
the VDS IDE is minimized and in normal view?
Thanks,
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 22, 2003 10:23 pm Post subject: |
|
|
Hummm. That's odd. But try this:
| Code: | window iconize,#TMainWin
If @equal(@winpos(#TMainWin,S),2)
Info VDS Is Mimimized
End
If @equal(@winpos(#TMainWin,S),1)
Info VDS Is In View
End |
It only works when it's this way. I think it's related to the way VDS minimizes.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Mar 22, 2003 10:40 pm Post subject: |
|
|
Shows to be normal in VDS3 when minimized too (using the title bar).
Maximized does report accurately though. _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Mar 22, 2003 10:41 pm Post subject: |
|
|
Try #TScriptWin or #TApplication _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:42 pm Post subject: |
|
|
That must be the problem then. The VDS IDE is not minimizing as
other programs do, it must be hiding itself instead. Oh well. What I
was trying to do, is when the VDS IDE is minimized, I was going to
have the Snip-Bar also minimize, and then when the IDE was
restored, have Snip-Bar restore.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:43 pm Post subject: |
|
|
Hi Bill, I already tried #TScriptWin, same issue. I'll try the other one
you noted.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Mar 22, 2003 10:44 pm Post subject: |
|
|
#TApplication is the first window that is created when you run VDS. Try checking to see if it's minimized or whatever. Just a thought.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 22, 2003 10:46 pm Post subject: |
|
|
| Quote: | #TApplication is the first window that is created when you run VDS. Try checking to see if it's minimized or whatever. Just a thought. |
I tried that and it reported that it was in view both times. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:47 pm Post subject: |
|
|
Well I feel like a complete newbie now!!!! #TApplication was the
proper class to use and not #TMainWin.
Bill, thanks for mentioning that class name there. I'm not sure how I
missed using that class name.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 22, 2003 10:51 pm Post subject: |
|
|
Yes, but Garrett, it seems that #TApplication doesn't minimize with VDS.
Your snippet falsely reported that VDS was in view. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:53 pm Post subject: |
|
|
It's working for me now here. Snip-Bar minimizes if the VDS IDE is
minizmized... But! I have not tried this with the VDS 3.x IDE yet. So
before I jump for joy, let me run it side by side with the VDS 3.x IDE.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 22, 2003 10:58 pm Post subject: |
|
|
So you are minimizing the VDS IDE with the minimize button or with the
code?
On Windows XP Professional I get a false report. Well, when Snip-Bar is
updated with this feature I'll tell you the results.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Mar 22, 2003 10:59 pm Post subject: |
|
|
FreezingFire, here's the actual code I'm using here:
| Code: | :TIMER
If @equal(@winpos(#TApplication,S),2)
If @equal(@winpos(#GTSNIPBAR01,S),1)
Window Iconize,#GTSNIPBAR01
End
End
If @equal(@winpos(#TApplication,S),1)
If @equal(@winpos(#GTSNIPBAR01,S),2)
Window Normal,#GTSNIPBAR01
End
End
Goto Eventloop |
And this works with the IDE for VDS 2,3,4 and 5.
Bill, FF, many thanks for helping
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Mar 22, 2003 11:35 pm Post subject: |
|
|
You're welcome as always Garrett. Glad to help.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 22, 2003 11:44 pm Post subject: |
|
|
| Quote: | You're welcome as always Garrett. Glad to help. |
Yes. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|