Jump to content

Recommended Posts

Posted

Hi All,

Im running a autoit script using firefox and have included FF.au3 functions.

In my script there is a For Loop and im running it for 300 times

For $i=1 To 300

Next

If its execute 300 times, i'll get the message in my webpage as "Your target was completed."

Is there any other method or function to execute the loop untill i get the message as "Your target was completed." ??

Mine is working fine but i need some better coding ??

  • Moderators
Posted (edited)

Is this message received in a pop up of some sort? If so, you could just use a Do..Until loop until that window is activated. Something like the example below may get you started.

$x = 1

Do

$x += 1

Until WinActive("[CLASS:Notepad]")

MsgBox(0, "", $x)
Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

Thaks for your suggestion Logan.

No its not received in a pop up. It will display in a webpage like (after we send mail we will get display as "mail sent successfully" in same page) its some sort of like that.

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
×
×
  • Create New...