kikke
vistaquest_makro
kikke
img_0003
kikke
img_0020
kikke
Kapasanta
kikke
Lady Thuraya
kikke
Plitvice

OS X PC modifier keys

2010. március 1., hétfő 12:15:12 kikke

Az alábbi szkript felcseréli a módosító billentyűket, így jobban kézreáll, könnyebb Ctrl+S-sel menteni és utána rögtön Ctrl+Tab-bal átváltani egy másik ablakra. A commandból option, az optionból control, a controlból command lesz így.

A Hungarian X86 billentyűzetkiosztás jól használható így, azaz Alt-tal elő lehet csalogatni a PC-n megszokott speciális karaktereket. Nem csak Alt Gr, de sima Alt lenyomásakor is működnek ezek a karakterek.

 

-- Open System Preferences

tell application "System Preferences"

activate

set current pane to pane "com.apple.preference.keyboard"

end tell

tell application "System Events"

-- If we don't have UI Elements enabled, then nothing is really going to work.

if UI elements enabled then

tell application process "System Preferences"

get properties

-- Open up the Modifier Keys sheet

click button "Modifier Keys…" of tab group 1 of window "Keyboard & Mouse"

tell sheet 1 of window "Keyboard & Mouse"

-- command to option

click pop up button 1

click menu item 3 of menu 1 of pop up button 1

delay 1

-- option to control

click pop up button 2

click menu item 2 of menu 1 of pop up button 2

delay 1

-- control to command

click pop up button 3

click menu item 4 of menu 1 of pop up button 3

delay 1

-- close the sheet

click button "OK"

end tell

end tell

tell application "System Preferences" to quit

else

-- UI elements not enabled.  Display an alert

tell application "System Preferences"

activate

set current pane to pane "com.apple.preference.universalaccess"

display dialog "Please Check \"Enable access for assistive devices!\" for running this script!"

end tell

end if

end tell


Új komment

Megjelenítendő név:
Komment:
Küldés