ripristinare blocco maiuscole di default [problema caps lock]
ciao a tutti !
ho disabilitato il capslock con uno script e non riesco più a riattivarlo. qualcuno riesce a darmi una mano ? grazie mille !
on idle
tell application "System Events"
tell application "KeyboardViewerServer" to activate
set CAPS to (get value of checkbox "⇪" of window 1 of application process "KeyboardViewerServer") as number
if CAPS is 1 then
tell application "TextEdit" to activate
repeat until CAPS is 0
set CAPS to (get value of checkbox "⇪" of window 1 of application process "KeyboardViewerServer") as number
keystroke "1"
end repeat
end if
return 1
end tell
end idle