Jump to content

Need better coding ??


vinoth
 Share

Recommended Posts

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 ??

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

  • Moderators

How about a screenshot of the message? A lot easier to troubleshoot if we can see what you're seeing :)

"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!

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...