20 applescript
我正在尝试在Automator中编写一个Applescript,按住左箭头按钮,同时按住控制,选项和命令.我到目前为止的代码是:
on run {input, parameters}
tell application "System Events"
tell application "Sublime Text 2" to activate
keystroke "left" using {control down, option down, command down}
end tell
return input
end run
Run Code Online (Sandbox Code Playgroud)
但是,这不起作用.有关如何修复此代码的任何建议?谢谢!
ada*_*amh 44
使用箭头键时,您需要通过键码来定位它们.
tell application "Sublime Text 2" to activate
tell application "System Events"
key code 123 using {control down, option down, command down}
end tell
Run Code Online (Sandbox Code Playgroud)
箭头键代码
| 归档时间: |
|
| 查看次数: |
26850 次 |
| 最近记录: |