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

Link to comment
Share on other sites

  • 1 year later...
  • Moderators

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

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