| View previous topic :: View next topic |
| Author |
Message |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Tue Feb 24, 2009 2:09 pm Post subject: @winexists() Problem ? |
|
|
Having probs with the @winexists() func. For me it seemes to work
for parent instaces only, not on child window ?. When using the Spy utility
and the SPYxx (Microsoft utility) the id is there all the time why can't
@winexists() work the same way or is this a problem with Vista and VDS5 ?
How do you get child id for API calls ?
%%hwnd = @winexists(#Internet Explorer_Server) this will return noting
but there is a handler ID presented in SPY.
How can i use the second parameter in this function @winexists(<window>,Child Window)
What can Spy do that @Winexists() can't ?
//Dan |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Feb 24, 2009 6:41 pm Post subject: |
|
|
Dan,
The Window Spy utility that comes with VDS does not use just @winexist() and actually I doubt that it uses @winexist() at all. Most likly it uses a combination of the LIST WINLIST and @WINDOW(). The LIST WINLIST command gets a list of all the windows then you use @WINDOW() in a loop to walk all the child windows of the parent. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Feb 24, 2009 8:11 pm Post subject: |
|
|
You will need to use "@WINDOW(<window>,CHILD|OWNER|FIRST|LAST|PREV|NEXT) " to get what you need. And it can be very confusing using this, but it does work. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Wed Feb 25, 2009 9:35 pm Post subject: |
|
|
| Garrett wrote: | | You will need to use "@WINDOW(<window>,CHILD|OWNER|FIRST|LAST|PREV|NEXT) " to get what you need. And it can be very confusing using this, but it does work. |
Great, thanks! That did the trick !, But it's an "trial & error" if you add a
new Dialog to the script (Next or Child ?) it works anyway ....
/Dan |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 26, 2009 2:11 am Post subject: |
|
|
I did say it can be a bit confusing  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|