Sign in to follow this  
Followers 0
vinoth

Need better coding ??

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

actually how to attach the screenshot. i'm not finding any option to attach.

Share this post


Link to post
Share on other sites

Hi Logan,

Plz find a screenshot of the message

Share this post


Link to post
Share on other sites

You need to add the attachment to the post for it to be visible.


♡♡♡

.

eMyvnE

Share this post


Link to post
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
Sign in to follow this  
Followers 0