mike34 Posted May 28, 2005 Share 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 Link to comment Share on other sites More sharing options...
/dev/null Posted May 28, 2005 Share 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 * Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 28, 2005 Share Posted May 28, 2005 if winactive("window") Then bla endif Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2005 Developers Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now