Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1


    Member Since
    Aug 21, 2010
    Posts
    5
    Question Automator auto click
    Hello all, I am new to these forums, and this is my first post.

    How do I use Automator on a Mac to click continuously? I just want the mouse to click at like 10 second intervals continuously. I found out it can be done on Automator, but I don't know how. Please help.

    This is for gaming purposes, i just need a click every few seconds to not go idle.

  2. #2

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Hello, Welcome to M-F

    Try the attached Automator Script, it's not the best auto clicker but its the best Automator can do.
    You can't have it loop forever, just certain number of times or minutes, once started it is almost impossible to stop it, and the mouse always goes to the same spot on the screen to click.
    Attached Files Attached Files
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  3. #3

    Slydude's Avatar
    Member Since
    Nov 15, 2009
    Location
    North Louisiana, USA
    Posts
    9,685
    Specs:
    2.8 GHz MacBook Pro 10.11, 8 GB mem, iPhone 6+
    Didn't know you were an Automator genius McYukon. Next time I back myself into a corner I will know who to call. I still haven't put in the time top master looping and variables.
    Sylvester Roque Former Contributing Editor About This Particular Macintosh

    "Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling

  4. #4


    Member Since
    Aug 21, 2010
    Posts
    5
    Quote Originally Posted by McYukon View Post
    Hello, Welcome to M-F

    Try the attached Automator Script, it's not the best auto clicker but its the best Automator can do.
    You can't have it loop forever, just certain number of times or minutes, once started it is almost impossible to stop it, and the mouse always goes to the same spot on the screen to click.
    Where it says 'Watch Me Do' should i click record at top and record the action I want? I did that and I get an error.
    I am trying to get a continuous click in a third-party application. It uses java. does that affect it? The clicker works when I am in Safari and clicking stuff, and it repeats then, using the above process, but it wont work in the java game.

    Am I doing something wrong? Help please! But thanks for the prompt response, within a day.

  5. #5

    Slydude's Avatar
    Member Since
    Nov 15, 2009
    Location
    North Louisiana, USA
    Posts
    9,685
    Specs:
    2.8 GHz MacBook Pro 10.11, 8 GB mem, iPhone 6+
    Just have a few questions that might help us solve this issue.

    1. Which OS are you running? The versions of Automator behave slightly differently. Some of the functions can be a bit "twitchy" at times.
    2. Do you remember the error message that you get? Normally you would do as you said click record and record the desired actions.
    3. Which game(s) do you need this to function in? That may not matter but you can never have too much information.
    Sylvester Roque Former Contributing Editor About This Particular Macintosh

    "Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling

  6. #6


    Member Since
    Aug 21, 2010
    Posts
    5
    It's a Macbook. Running OS X Snow Leopard. Version 10.6.4 Automator Version 2.1

    2. "The action "Watch Me Do" encountered an error. Check the action's properties and try running the workflow again

    3. The game is called Puzzle Pirates, if that helps Childish, but fun.

  7. #7

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Your right it doesn't seem to work in a Java applet.
    It keeps spitting out the same error you get when I click in the java applet, anywhere else and it works without a problem.

    Try tricking it. Since clicking directly on the Java won't work,
    Remember the position you want to click in, then open another empty Safari window.
    Start recording and click in the right spot in the empty window.
    Stop recording and close the empty window, then run the recorded action in the window with the game in it.
    It should be able to click, I don't know if the Java registers the click but this way it doesn't throw an error.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  8. #8


    Member Since
    Aug 21, 2010
    Posts
    5
    Gah!! it Gave the same error! Darn you Java!!

    Any more ideas?, you have been a help, i can now loop stuff, so I have learned from this experience.

  9. #9

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Well it seems automator doesn't like clicking on Java at all.
    You are using Safari to play the game right? Now it's time to try it with applescript!

    Open the AppleScript Editor in the Utilities folder and paste in this code.
    Code:
    repeat 10 times
    	delay 1
    	tell application "System Events"
    		tell application process "Safari"
    			click (click at {650, 730})
    		end tell
    	end tell
    end repeat
    You can change the number of times it runs (repeat 10 times)
    Leave the delay at 1, I don't know if the System can handle 100 clicks/second

    Then use the screenshot tool to find the coordinates (command+shift+4), and replace the 650 and 730 with the coordinates you want to click on. The screenshot tool's top coordinate is the first number and the bottom the last number. (Careful that you don't accidentally remove the , )

    Press the compile button, if everything goes right everything will get colorized in the script.
    Save it as an Application, open it and test it. When the script is running you cannot quit the AppleScript Application the normal way, you will have to force quit it.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  10. #10


    Member Since
    Aug 21, 2010
    Posts
    5
    Puzzle Pirates is a pop-out little applet thingy(didn't work, I give up :/), but I see another purpose that i can use this for. Can you make it for 3 clicks, with the same coordinate thingy?

    Also Automator Virtual Input (its a program) gives you the cordinates easily

  11. #11

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    You want it with 3 clicks in different places?
    Sure,

    Code:
    repeat 1 times
    delay 2
    tell application "System Events"
    tell application process "Safari"
    delay 2
    click (click at {290, 335})
    delay 2
    click (click at {240, 380})
    delay 2
    click (click at {220, 430})
    end tell
    end tell
    end repeat
    Don't know why it isn't stepped, but when you Compile it, it will be put right.
    You can remove or change the delay functions in the Safari block if you want it just may not click right without them.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  12. #12


    Member Since
    Dec 19, 2010
    Posts
    1
    Quote Originally Posted by McYukon View Post
    Well it seems automator doesn't like clicking on Java at all.
    You are using Safari to play the game right? Now it's time to try it with applescript!

    Open the AppleScript Editor in the Utilities folder and paste in this code.
    Code:
    repeat 10 times
    	delay 1
    	tell application "System Events"
    		tell application process "Safari"
    			click (click at {650, 730})
    		end tell
    	end tell
    end repeat
    You can change the number of times it runs (repeat 10 times)
    Leave the delay at 1, I don't know if the System can handle 100 clicks/second

    Then use the screenshot tool to find the coordinates (command+shift+4), and replace the 650 and 730 with the coordinates you want to click on. The screenshot tool's top coordinate is the first number and the bottom the last number. (Careful that you don't accidentally remove the , )

    Press the compile button, if everything goes right everything will get colorized in the script.
    Save it as an Application, open it and test it. When the script is running you cannot quit the AppleScript Application the normal way, you will have to force quit it.
    I did everything you said to do, but I got this error when I ran the application.
    Here is what error I got: Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting

  13. #13

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    What OS are you using? And is the "Enable access for assistive devices" enabled in System Preferences>Universal Access ?
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  14. #14


    Member Since
    May 15, 2011
    Posts
    1
    hey there, I have a simillar issue, mind if I but in?
    I found this thread yesterday, I've been trying unsuccessfully for a while now to make some kind of work-flow for Automator or apple script to continuously flip the pages of a swf player and print each page to pdf. I tried using the aforementioned script and while in the events log on apple-script editor it says it's working, nothing happens. Any suggestions McYukon?
    btw I'm running Mac OS 10.6.4.

  15. #15

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    I'll quote what I said to an earlier question like this.
    I have tried Applescript with Java and Flash and both times I draw a blank.
    I can see Applescipt try to click, the Browser responds with the page title and page contents and then fails to send the Flash/Java content to Applescript telling it that it's there.
    I strongly believe that it's just Flash that needs to be made to receive Applescript commands so that it knows what to do with them.

    Annoying, but there isn't much one can do about it except maybe complain to Adobe, although I doubt they care about it much.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to use Automator for an Auto Click
    By dennispartain in forum OS X - Apps and Games
    Replies: 1
    Last Post: 12-14-2010, 10:24 PM
  2. Automator, auto clicking
    By Klopsiki in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-11-2010, 09:02 PM
  3. Dwell Click / Auto Click software for RSI/carpal tunnel syndrome
    By jdesanta in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-24-2009, 03:26 PM
  4. Any auto-click applications?
    By LewisGregory in forum OS X - Apps and Games
    Replies: 0
    Last Post: 07-06-2008, 02:10 AM
  5. click wheel doesnt work w/ auto stereo anymore
    By jhigashiyama in forum iPod Hardware and Accessories
    Replies: 0
    Last Post: 03-12-2007, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •