miriam

Loop script until button appears, click on button to end

4 posts in this topic

Hi all and compliments for the forum!

Can you help with a script?

I need run the script (mouseclicks left) until button "Try it" appears, when button appears the script clicks it and loop end. It is on a page's website, no software, Windows etc.

 

I have this:

 

HotKeySet("^e", "MyExit")

While 1
mouseClick("left",601,387,2)
sleep(500)
mouseClick("left",624,571,1)
sleep(500)
WEnd

Func MyExit()
    Exit
EndFunc

 

I have to know the id / class etc of the button? Or need just the word "Try it"?

So:

Start loop

Click 1

Click 2

--> no button appeared

Click 1

Click 2

--> button with text Try it appeared! 

Click on "Try it" button (with script, not me)

End loop

 

Thank you very much in advance.

(Sorry for my English) 

Share this post


Link to post
Share on other sites



I need this too, did you solve? If yes, you can tell me how? Thank you

Share this post


Link to post
Share on other sites

@pasqui you asked this question in June 2 years ago, then again in May of this year. And in each instance, when people try to help you you never respond. So how about picking up one of your own threads instead of resurrecting someone else's? And how about answering the most basic question - give a detailed description of what you are trying to do.

1 person likes this

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

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