Click here after x-minutes

1/03/2011

-- hubionmac.com 01.03.2011

-- remembers mouse position and clicks it after a given time

-- this script uses cliclick by Carsten Blüm (http://www.bluem.net/en/mac/cliclick/)

-- binary should be located in your application folder


say "will copy mouse position in"

say 3

say 2

say 1

say "now"

set mouse_XY to do shell script "afplay /System/Library/Sounds/Tink.aiff; /Applications/cliclick -q"

set AppleScript's text item delimiters to ","

set x to text item 1 of mouse_XY

set y to text item 2 of mouse_XY

set AppleScript's text item delimiters to ""


set waitfor to (text returned of (display dialog "Wieviel Minuten soll ich warten?" default answer 1) as integer) * 60


with timeout of (waitfor + 10) seconds

delay waitfor

do shell script "/Applications/cliclick " & x & " " & y

end timeout

No Comments

Maus klicken und bewegen via shell script

25/04/2010
Ich hatte ja mal eine Zeile gefunden, die das via bewegen des Maus-Zeigers via Phyton regelt, dieses kleine Shell-Programm (CLICLICK )kann sogar klicken, doppelklicken, tasten dabei gedrückt halten... ach wie schön und simpel =)
1 Comment