WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

EXAMPLES FROM USERS

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Check window for Specific Text

 Keywords: Check Search Locate Find Text Window   

Wait for window to appear with specific text
;-----------------------------------------------------------------------
; Check for existence of window containing specific text

#DefineFunction xWinExist(WindowTitle,WindowText)
If !WinExist(WindowTitle) Then Return @FALSE
If WindowText=="" Then Return @TRUE
If StrIndexNC(WinItemChild(WindowTitle),WindowText,1,@FWDSCAN)>0 Then Return @TRUE
Return @FALSE
#EndFunction

; Test
While @TRUE
   If xWinExist("Some Window Name","Finish") Then Break
   TimeDelay(1)
EndWhile

Article ID:   W17371
File Created: 2009:05:11:14:10:32
Last Updated: 2009:05:11:14:10:32