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="DknightNZ" data-source="post: 1778006" data-attributes="member: 396998"><p><strong>Need a bit more help please.</strong></p><p></p><p>Hello.</p><p></p><p>Ive been trying a few of these out. Some I can make work. Some not so much.</p><p></p><p>This worked for me but didn't do all i needed. With mousekeys turned on.</p><p></p><p>on idle</p><p> tell application "System Events"</p><p> key code 87</p><p> end tell</p><p> return 2</p><p>end idle</p><p></p><p></p><p>What I am wanting is the above script but for 2 different locations on the screen. The first location I want clicked 22 times with a 1 sec delay between them. Then 1 click in a new location on the screen. Then repeat the entire process.</p><p></p><p>I am wanting this for a game played through Firefox. The top script above works but only in the one location. I have tried to modify it for multiple locations but I'm going wrong somewhere and it never works.</p><p></p><p>I tried this one but it wouldn't work at all. The error i get when running this one is below the script. I have tried the game in Safari for the below script. But 1, game plays like ****. 2, I cant make the script work in Safari either. Ideally would be above script edited to my requirements as That one works in firefox happily and the game plays well in Firefox.</p><p></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></p><p>ERROR = error "System Events got an error: Can’t make missing value into type UI element." number -1700 from missing value to UI element</p><p></p><p>Thanks <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Dk</p></blockquote><p></p>
[QUOTE="DknightNZ, post: 1778006, member: 396998"] [b]Need a bit more help please.[/b] Hello. Ive been trying a few of these out. Some I can make work. Some not so much. This worked for me but didn't do all i needed. With mousekeys turned on. on idle tell application "System Events" key code 87 end tell return 2 end idle What I am wanting is the above script but for 2 different locations on the screen. The first location I want clicked 22 times with a 1 sec delay between them. Then 1 click in a new location on the screen. Then repeat the entire process. I am wanting this for a game played through Firefox. The top script above works but only in the one location. I have tried to modify it for multiple locations but I'm going wrong somewhere and it never works. I tried this one but it wouldn't work at all. The error i get when running this one is below the script. I have tried the game in Safari for the below script. But 1, game plays like ****. 2, I cant make the script work in Safari either. Ideally would be above script edited to my requirements as That one works in firefox happily and the game plays well in Firefox. repeat 10 times delay 1 tell application "System Events" tell application process "Safari" click (click at {650, 730}) end tell end tell end repeat ERROR = error "System Events got an error: Can’t make missing value into type UI element." number -1700 from missing value to UI element Thanks :) Dk [/QUOTE]
Verification
Post reply
Forums
Other Apple Products
Other Hardware and Peripherals
Automator auto click
Top