mouse not clicking

I am a bit of a noob at apple script, I am trying to make it click at a point after pressing a key. I don't know where I've gone wrong and its probably very stupid. This is what I already have:


tell application "System Events"


repeat 200 times


delay 10


key down "w"


delay 20


key up "w"


delay 10


click at {969, 910}


end repeat


end tell

Posted on Oct 4, 2019 1:35 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

mouse not clicking

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.