Page 1 of 1

Help with window-detection

Posted: Tue Feb 28, 2006 11:11 pm
by Jojje67
I have a task where one action is to press a button. There are two possible windows that can appear. I want two different actions depending of what windows that pop-ups.
Is there something like "if windowcaption = qwerty then dothis else dothat"?
Thanks in advanced...

Help with window-detection

Posted: Thu Mar 02, 2006 7:46 am
by Oleg
See {WindowExists()} system variable. Specify the part of window caption as a parameter.
You easily can create such construction

if {WindowExists(Notepad)} then
   do something
else
   do something else
end if