| View previous topic :: View next topic |
| Author |
Message |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Wed May 10, 2006 10:38 am Post subject: How may I create list of open windows? |
|
|
I have a script where @winexists returns false for a window I know to be open. I have double-checked the supplied window title (the script will happily send the same keystrokes to another app if I change the supplied window title so I know the code works) but it doesn't seem to find the window title I supply.
My next debugging step is to capture the text of all the open window titles to see if my target window title contains any hidden characters or spurious text causing a mismatch. Unfortunately, I cannot readily find a VDS function that will return a list of open window titles. Can this be done in VDS?
Thanks _________________ David |
|
| Back to top |
|
 |
DavidR Contributor

Joined: 05 Aug 2003 Posts: 83 Location: Bethel Pennsylvania U.S.A.
|
Posted: Wed May 10, 2006 5:24 pm Post subject: Winlist? |
|
|
Have you tried WINLIST ?
Always works for me! Check your VDS help.. |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed May 10, 2006 9:36 pm Post subject: |
|
|
Code snippett:
| Code: |
list create,1
list winlist,1,ICN
REM View the VDS help file topic for 'Using Lists' and 'Data Lists'.
if @greater(@count(1),0)
Info @count(1) open windows
end
list clear,1
list close,1
|
Hope this helps  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Thu May 11, 2006 9:40 am Post subject: |
|
|
Many thanks DavidR and ShinobiSoft. This has been a great help. It's obvious in the VDS Help when you know what you are looking for but if you don't, it's not that intuitive. I was expecting some kind of @windows function to give me this.
I did look at LIST but I forgot from using VDS years ago that the documentation describes the LIST command in several different places. Looking at LIST talks about CREATE, ADD, ASSIGN, FILELIST etc. - no mention of WINLIST. Looking at Using Lists shows another raft of LIST commands. WINLIST is under Data Lists - I omitted to look there. This is an area that could be tidied up in a future version - the Help is more of a reference look-up for experienced users and not necessarily a help for those coming fresh to VDS or, like me, rusty after a few years away.
Thanks again _________________ David |
|
| Back to top |
|
 |
|