Help with window-detection

Discuss RoboTask here
Post Reply
Jojje67
Posts: 1
Joined: Tue Feb 28, 2006 11:08 pm
Location: Sweden
Contact:

Help with window-detection

Post 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...
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Help with window-detection

Post 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
Post Reply