New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Other Hardware and Peripherals Other Apple systems and peripherals discussion.

Automator auto click


Post Reply New Thread Subscribe

 
Thread Tools
Greencheese

 
Member Since: Aug 21, 2010
Posts: 5
Greencheese is on a distinguished road

Greencheese is offline
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.
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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
File Type: zip Autoclicker.zip (61.5 KB, 1696 views)

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.
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,870
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is online now
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
QUOTE Thanks
Greencheese

 
Member Since: Aug 21, 2010
Posts: 5
Greencheese is on a distinguished road

Greencheese is offline
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.
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,870
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is online now
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
QUOTE Thanks
Greencheese

 
Member Since: Aug 21, 2010
Posts: 5
Greencheese is on a distinguished road

Greencheese is offline
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.
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
Greencheese

 
Member Since: Aug 21, 2010
Posts: 5
Greencheese is on a distinguished road

Greencheese is offline
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.
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
Greencheese

 
Member Since: Aug 21, 2010
Posts: 5
Greencheese is on a distinguished road

Greencheese is offline
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
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
Calla

 
Member Since: Dec 19, 2010
Posts: 1
Calla is on a distinguished road

Calla is offline
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
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
mongolloyd

 
Member Since: May 15, 2011
Posts: 1
mongolloyd is on a distinguished road

mongolloyd is offline
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.
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
I'll quote what I said to an earlier question like this.
Quote:
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Mini installs HP 4500 software but won't recognize hardware | Connecting Apple TV to Bose Lifestyle »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Sitecom wireless range extender skippers Internet, Networking, and Wireless 6 12-28-2009 07:13 PM

All times are GMT -4. The time now is 03:04 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?