我是 AppleScript 的新手,我正在尝试制作键盘快捷键来切换 Logitech K750 上的 Fn 键。我使用 AutoCAD 并且真的需要它。
我开始尝试一些代码,但直到现在都没有成功......有人可以帮助我吗?
这是代码...
谢谢!!!
tell application "Device Manager"
activate
end tell
tell application "Device Manager"
get every attribute of checkbox "When this box is checked, press F1, F2, etc. keys to use the standard function keys, and press and hold the Fn key to use the enhanced functions printed on the keys." of window "Wireless Solar Keyboard K750 for Mac"
click checkbox "When this box is checked, press F1, F2, etc. keys to use the standard function keys, and press and hold the Fn key to use the enhanced functions printed on the keys." of window "Wireless Solar Keyboard K750 for Mac"
activate
if value of checkbox "When this box is checked, press F1, F2, etc. keys to use the standard function keys, and press and hold the Fn key to use the enhanced functions printed on the keys." of window "Wireless Solar Keyboard K750 for Mac" = 0 then
display dialog "Standard Function Keys off..." giving up after 1
else
display dialog "Standard Function Keys on..." giving up after 1
end if
end tell
tell application "Device Manager"
quit
end tell