私は 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