I am trying to make a script that enables a mouse click to run through a string of keystroke values, moving down the keystrokes one at a time with each successive click. I am not having much luck.
Even better would be if the separate keystrokes can be triggered randomly and not sequentially with a mouse click. Any help would be great. Thanks
repeat 10 times
delay 1
tell application "System Events"
tell application process "TextEdit"
click (click at {10, 10})
keystroke "6"
keystroke "6"
keystroke "0"
-- ...
keystroke "6"
keystroke "4"
delay 1
end tell
end tell
end repeat
Aucun commentaire:
Enregistrer un commentaire