forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How may I create list of open windows?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
steeld
Valued Newbie


Joined: 03 May 2006
Posts: 26
Location: Cambridge, UK

PostPosted: Wed May 10, 2006 10:38 am    Post subject: How may I create list of open windows? Reply with quote

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
View user's profile Send private message
DavidR
Contributor
Contributor


Joined: 05 Aug 2003
Posts: 83
Location: Bethel Pennsylvania U.S.A.

PostPosted: Wed May 10, 2006 5:24 pm    Post subject: Winlist? Reply with quote

Have you tried WINLIST ?
Always works for me! Check your VDS help..
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed May 10, 2006 9:36 pm    Post subject: Reply with quote

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 Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
steeld
Valued Newbie


Joined: 03 May 2006
Posts: 26
Location: Cambridge, UK

PostPosted: Thu May 11, 2006 9:40 am    Post subject: Reply with quote

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. Sad 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group