Я новичок в AppleScript, и я пытаюсь сделать комбинацию клавиш для переключения клавиш Fn на моем Logitech K750. Я использую AutoCAD и действительно нуждаюсь в нем.AppleScript K750 Toggle Fn Keys
Я начал пробовать коды, но до сих пор не успел ... может кто-нибудь мне помочь?
Вот код ...
Спасибо!
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
Oups! Затем попробуйте использовать синтаксис в диспетчере устройств, подобный синтаксису моего скрипта. Прежде всего, чтобы скрипт был легче читать, замените описание флажка на число (я думаю = 1 на основе вашей копии экрана). Кроме того, флажок «click checkbox ...» должен находиться в «заявке приложения» «Системные события»/сообщить процессу «Диспетчер устройств» ... блок (см. Мой скрипт). Так вы можете имитировать клики и другие действия с графическим интерфейсом через скрипт. Последнее замечание заключается в том, что диалоговое окно вашего дисплея не должно указывать в блоке диспетчера устройств, который может его не поддерживать. просто поместите диалог дисплея после окончания. – pbell