求一个关闭/打开 Fn 功能键的 Workflow,

2017-03-27 15:22:13 +08:00
 Nathanzheng

或者告诉我怎么做也行

1507 次点击
所在节点    问与答
4 条回复
minamike
2017-03-27 17:17:42 +08:00
如果是 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
Nathanzheng
2017-03-27 18:35:05 +08:00
@minamike 请问怎么用啊, Keyword 是什么
minamike
2017-03-27 18:42:13 +08:00
@Nathanzheng 你时用的 Alfred 的吗 keyword 就是运行这个命令的关键词啊
你用快捷键呼出 alfred 窗口输入设定的 keyword 就可以运行这个命令
也可以直接用快捷键啊 两者任选一个就可以
Nathanzheng
2017-03-27 18:43:43 +08:00
@minamike 没有用啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/350626

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX