我正在尝试创建一个脚本,使鼠标单击能够运行一串击键值,每次连续点击一次向下移动键击。我没有太多运气。
如果单独的击键可以随机触发而不是用鼠标点击顺序触发,那就更好了。任何帮助都会很棒。感谢
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
结束重复