Jump to content

Newbie Loop question


Recommended Posts

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 go

to the end of the loop like:

send ("{ENTER}")

exit loop

WinWaitActive("window title 2")

if tihs window get active i want to normaly continue the loop.

....

....

....

wend

i 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

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

  • Developers

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...