Greasy Fork is available in English.

Discussions » Creation Requests

How do i make a script that automatically clicks an element on screen.

§
Posted:

How do i make a script that automatically clicks an element on screen.

I want a script that will click an element on screen, then click A and D when the element is not on screen. How difficult would this be to do?

I want to click when the click to play element is on screen

CLICK TO PLAY

and after it gets clicked I want it to press A for 100ms, then press d for 100ms, and keep doing that until the click to play element shows on screen.

§
Posted:

You can use jquery to do this $('CLASSORIDELEMENTNAME').click();

Post reply

Sign in to post a reply.