mike34 0 Posted May 28, 2005 hello,I created a while loop like this:while 1 $line = FileReadLine($file) .... ....// now in the middle of the loop two possible windows could appear. WinWaitActive("window title 1")If this window get active i want to send the enter key end goto the end of the loop like:send ("{ENTER}")exit loopWinWaitActive("window title 2")if tihs window get active i want to normaly continue the loop. .... .... ....wendi tried it with if and do until but i always get error when starting the au3 file.would be great if some could help me.greetings Mike Share this post Link to post Share on other sites
/dev/null 2 Posted May 28, 2005 for any help we need the script and the errors. Cheers Kurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Share this post Link to post Share on other sites
MarkMarkMark 0 Posted May 28, 2005 if winactive("window") Then bla endif Share this post Link to post Share on other sites
Jos 2,208 Posted May 28, 2005 if winactive("window") Then bla endif<{POST_SNAPBACK}>I would use WinExists() because it migth not have the focus... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites