Re: Move cursor with Applescript
Re: Move cursor with Applescript
- Subject: Re: Move cursor with Applescript
- From: Craig Williams <email@hidden>
- Date: Sat, 3 Apr 2010 12:53:05 -0600
I'm trying to change an iKey function to a script.
(* ClickZoomBox - 4/3/10 *) tell application "System Events" Move cursor to 57,12 (T/L) click -- click left mouse button end tell
ex. do shell script "cliclick 51 17"
If you only want to move the mouse and not perform a click then you can use CGWarpMouseCursorPosition().
Here is an example using MacRuby but you could easily turn this into a command line utility. set x to 57 set y to 12 do shell script "/usr/local/bin/macruby -e \"framework 'carbon'\" -e \"framework 'ApplicationServices'\" -e \"CGWarpMouseCursorPosition(CGPointMake(" & x & "," & y & "))\""
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden