Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GUI detection

Status
Not open for further replies.

mbrink

Technical User
Jul 5, 2002
13
US
I'm trying to automate various processes using VBScript. However, I can't find any way to have a script detect what is being displayed to the screen.

For example, one program I use prompts for a login. I could make it wait a certain amount of time, except that occasionally, the program hangs up and never gets to the login screen. So I need a way to check if the login screen has appeared.

Is this even possible with WSH?
 
Mbrink,

Not that I know of with WSH itself but you could script AutoIt's freeware ActiveX component to do the checking.

It has very useful methods like IfWinExist (Checks if a given window exists in any state), IfWinActive (Checks if a given window is currently active) and WinWaitActive (Pause until the specified window is active) plus lots more.

Have a look at
Hope this helps...

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top