2016-04-07 39 views
0

AppleScript'te yeniyim ve Logitech K750'mde Fn Keys'i değiştirmek için klavye kısayolu yapmaya çalışıyorum. AutoCAD kullanıyorum ve gerçekten buna ihtiyacım var.AppleScript K750 Fn Tuşları arasında geçiş yapma

Bazı kodları denemeye başladım, ama şimdiye kadar hiç bir başarı ... hiç kimse bana yardım edemez mi?

İşte kod ...

Teşekkür ederiz !!!

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

cevap

0

Bu komut fonksiyon tuşu onay kutusunu tıklar.

O ElCapitain (10.11) üzerinde test ve OK edilir:

tell application "System Preferences" 
activate 
set current pane to pane "com.apple.preference.keyboard" 
reveal anchor "keyboardTab" of current pane 
end tell 
delay 0.5 -- to make sure system has time to open the window ! 
tell application "System Events" 
tell application process "System Preferences" to click checkbox 1 of tab group 1 of front window 
end tell 
tell application "System Preferences" to close front window 

Uyarı: GUI betik geçerli sistem sürümü bağlıdır. Apple bir sonraki işletim sistemi sürümünde tercihler bölmelerinin düzenini değiştirirse, bu komut artık çalışmayabilir.

-1

Teşekkür ederim, zil! Ama bu sadece bir Apple Klavye ile çalışır. Mine bir Logitech K750'dir ve Fn Anahtarı seçeneği Logitech'ten bir uygulama olan "Logitech Aygıt Yöneticisi" üzerinde bulunur. Ancak ... "Logitech Aygıt Yöneticisi" açtığında ... yani, sonra el onay kutusunu tıklamanız gerekiyor dek çalışmayı sağlayan etmek

Logitech Device Manager

+0

oups başardınız! Ardından, komut dizimin sözdizimine benzer bir cihaz yöneticisinde sözdizimini kullanmayı deneyin. Öncelikle betiğin okunmasını kolaylaştırmak için onay kutusundaki açıklamayı bir sayıyla değiştirin (ekran kopyasına bağlı olarak 1 sanırım = 1). Ayrıca 'tıklayın onay kutusu ...' komutunu 'uygulamaya bildir' Sistem Olayları '//işlemi "Cihaz Yöneticisi" ... bloğu içinde olmalıdır (betiğime bakın). Tıklama reklamı ile diğer GUI eylemlerini simüle edebilirsiniz. Son söz, ekran iletişim kutusunun, destekleyemeyen cihaz yöneticisi blocunda bulunmaması gerektiğidir. Ekranın sonunu anlattıktan sonra ekrana getir. – pbell

İlgili konular