How to do Windows Loop

Discuss RoboTask here
Post Reply
nitro2k01
Posts: 1
Joined: Tue Jul 25, 2006 10:41 am

How to do Windows Loop

Post by nitro2k01 »

HI,I am new to this program and I couldnt get windows loop to do what i want.this is the problem, I want windows loop to keep on reloading "Page not found" webpage until that error message is gone.And how do I declare windows title to a variable?is it possible to do that with windows loop or is there another funtion in the program for it?I tried couple of time but no luck!A help would be appreciated!thanks
Last edited by nitro2k01 on Tue Jul 25, 2006 3:48 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

How to do Windows Loop

Post by Oleg »

"Window loop" enumerates all windows in your session by specified criteria. In your case I advice the following algorithm:

Simple loop (from 1 to 100) // for example
   If {WindowExists(Page not found)} = true then
      Send keystoke "F5" to window "Page not found"
      pause 5 sec
   else
      break
   end if
end loop

Thus, you have 100 attempts each 5 seconds. If window is not found your task will be finished.
Post Reply