或者告诉我怎么做也行
1
minamike 2017-03-27 17:17:42 +08:00 1
如果是 mac 的话可以用 AppleScript
``` tell application "System Preferences" set current pane to pane "com.apple.preference.keyboard" end tell tell application "System Events" if UI elements enabled then tell tab group 1 of window "Keyboard" of process "System Preferences" click checkbox "Use F1, F2, etc. keys as standard function keys" end tell else tell application "System Preferences" set current pane ¬ to pane "com.apple.preference.universalaccess" display dialog ¬ "UI element scripting is not enabled. Check \"Enable access for assistive devices\"" end tell end if end tell tell application "System Preferences" quit end tell ``` Alfredworkflow : https://github.com/packal/repository/blob/master/com.tanseycg.togglefunctionkeys/toggle_function_keys.alfredworkflow |
2
Nathanzheng OP @minamike 请问怎么用啊, Keyword 是什么
|
3
minamike 2017-03-27 18:42:13 +08:00
@Nathanzheng 你时用的 Alfred 的吗 keyword 就是运行这个命令的关键词啊
你用快捷键呼出 alfred 窗口输入设定的 keyword 就可以运行这个命令 也可以直接用快捷键啊 两者任选一个就可以 |
4
Nathanzheng OP @minamike 没有用啊
|