Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Other Apple Products
Other Hardware and Peripherals
Automator auto click
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="McYukon" data-source="post: 1102288" data-attributes="member: 101117"><p>Well it seems automator doesn't like clicking on Java at all.</p><p>You are using Safari to play the game right? Now it's time to try it with applescript!</p><p></p><p>Open the AppleScript Editor in the Utilities folder and paste in this code.</p><p>[CODE]</p><p>repeat 10 times</p><p> delay 1</p><p> tell application "System Events"</p><p> tell application process "Safari"</p><p> click (click at {650, 730})</p><p> end tell</p><p> end tell</p><p>end repeat</p><p>[/CODE]</p><p></p><p>You can change the number of times it runs (repeat 10 times)</p><p>Leave the delay at 1, I don't know if the System can handle 100 clicks/second</p><p></p><p>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 , )</p><p></p><p>Press the compile button, if everything goes right everything will get colorized in the script.</p><p>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.</p></blockquote><p></p>
[QUOTE="McYukon, post: 1102288, member: 101117"] 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 [/CODE] 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. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Other Apple Products
Other Hardware and Peripherals
Automator auto click
Top