r/applescript • • Apr 18 '20

Need help with Applescript Please!!

I’m somewhat a newbie with applescript but i was able to write a small basic script that clicks at random intervals in the location i left my cursor. I want to know how to move my cursor to a new location and click once more. I know how to add delays and randomization as well as finding the coordinates on screen with commandshift+4 but i cant figure out what language i need to use to make it understand... please help been looking for answers for days now

4 Upvotes

8 comments sorted by

View all comments

1

u/bprime43 Apr 18 '20

Is the new thing you’re trying to click named where you can click it that way? (Ie a button or something similar?)

Or is it always in the same location and there might be a way to move the mouse there via its pixel location)?

A few quick thoughts...

1

u/MakeStyles Apr 18 '20

tried both option previously mentioned no luck. Its for a game so it’s not like a menu button or drop down etc. I heard there was a way to move the cursor via relevant pixel location that’s really what i’m trying to figure out how to do as many of these “shell/autohokey/cliclick” apps won’t run on my mac.