Could you help with this simple applescript program?

Discussion in 'Mac Programming' started by Creed Bratton, Oct 9, 2011.

  1. Creed Bratton macrumors newbie

    Joined:
    Oct 9, 2011
    #1
    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.
     
  2. bergert macrumors regular

    Joined:
    Jun 24, 2008
    #3
    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.
     

Share This Page