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

Creed Bratton

macrumors newbie
Original poster
Oct 9, 2011
1
0
What I want to do is make a script that will:

Move the mouse to a certain location
>right click
>move the mouse to a new certain location
>left click
and repeat this for a number of times.

Note: I tried automator for this, but it wont work in a java applet.

Any help would be great. Thanks.
 

bergert

macrumors 6502
Jun 24, 2008
263
149
What I want to do is make a script that will:

Move the mouse to a certain location
>right click
>move the mouse to a new certain location
>left click
and repeat this for a number of times.

Note: I tried automator for this, but it wont work in a java applet.

Any help would be great. Thanks.

Scripting (since OS v7) is implemented by applications as receiving events (check out the Interapplication Communcation Manual for OSX). I am sure that Java has no IAC implemented, and that is why when you record mouse clicks - you record nothing from Java! The same is true for any application which is not "AppleScript enabled" (as we call it) by the way.

So you are left with the only choice to simulate a move of the mouse pointer and simulate clicks; as was suggested.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.