well easy for you I hope lol... basically I have a vbscript which finds and closes a window, what i would like to do is make a loop which runs for say 5 seconds and then exits for examplesome thing like...
do while time isn't 5 seconds yet and windowfound = false
if window exists
close it (i have the script for this task)
set windowfound = true
else
do nothing
loop
the reason i need it to loop rather then wait for x seconds and try again is because i want to make sure the window never appears so i need it to run constantly so that it closes the window straight away, i had a look on the net but couldn't find an answer... anyone know how to do this plz...