AutoHotkeyYear2k-compliant?
WinGetText
Quote:
WinGetText, OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
So, this would mean, you need to do something like:
Code:
Loop ; - infinite
{
; try to get the desired text
WinGetText, theText, TheTitleOfYourWindow, acepted
; if errorlevel is set to 1, there was a problem, in other words, it didn't find it.
if errorlevel = 0
break ; - now we did find it
; add some 'breath' for the CPU to the loop
Sleep, 100
}
msgbox, Found it!
untested, and you might need to add/adapt
SetTitleMatchMode and
DetectHiddenText to get it to find your window(text)