![]() If ((startTime's timeIntervalSinceNow()) > pMaxTimeSec) then Repeat until window pWinTitle of process pProcessName exists Set startTime to current application's NSDate's |date|() ![]() On pauseUntilWin(pWinTitle, pProcessName, pMaxTimeSec) Set msgTitleStr to "Remap of Modifier Keys"ĭisplay dialog msgStr with title msgTitleStr Set msgStr to "CONTROL Key has been mapped to: " & newKeyMap Tell application "System Preferences" to quit Set newKeyMap to item numDown of - UP ArrowĮnd tell - pop up button "Control (⌃) Key:"Ĭlick button "OK" - on sheet 1 (modifier key list)Įnd tell - sheet 1 - (modifier key list) If (ctrlVal contains "Command") then set numDown to 1 - for Control TOGGLE CONTROL KEY Between CONTROL & COMMAND KEY CODE. Repeat until (button "Modifier Keys…" of tab group 1) existsĬlick button "Modifier Keys…" of tab group 1 Set elapTime to my pauseUntilWin("Keyboard", "System Preferences", 1) Set elapTime to my pauseUntilWin("System Preferences", "System Preferences", 1)Ĭlick button "Keyboard" of scroll area 1 of window "System Preferences" Tell application "System Preferences" to activate ![]() ![]() Set frontApp to path to frontmost application as text Use AppleScript version "2.4" - Yosemite (10.10) or later
0 Comments
Leave a Reply. |