Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mason.kramer

macrumors 6502
Original poster
Apr 16, 2007
270
18
Watertown, MA
Hi. I'm playing a computer game that allows me to advance in a certain way if I could only repeatedly click a mouse button once per second for hours on end. For reasons unknown to me, I actually want to do this. I don't know much about applescript, but I from what I understand about applescript, this is the kind of thing that applescript is actually good at. Can anyone give me a script that, when run, will just click my mouse repeatedly, whereever the cursor happens to be placed? Or perhaps direct me to some documentation about applescript and mice?
 

MongoTheGeek

macrumors 68040
Hi. I'm playing a computer game that allows me to advance in a certain way if I could only repeatedly click a mouse button once per second for hours on end. For reasons unknown to me, I actually want to do this. I don't know much about applescript, but I from what I understand about applescript, this is the kind of thing that applescript is actually good at. Can anyone give me a script that, when run, will just click my mouse repeatedly, whereever the cursor happens to be placed? Or perhaps direct me to some documentation about applescript and mice?

tell application "System Events"
tell process "World Of Warcrack"
click at {10, 10}
end tell
end tell

coordinates are x,y in quadrant 3 (i.e. 0,0 is top left)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.