Jump to content

Loop script until button appears, click on button to end

Recommended Posts


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

Func MyExit()


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


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.

  • Like 1

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.