Re: can applescript monitor keyboard input
Re: can applescript monitor keyboard input
- Subject: Re: can applescript monitor keyboard input
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 28 Jun 2008 09:47:10 +0200
Le 27 juin 2008 à 23:31, Ian Goos a écrit :
I would like to do this as well just to see how oddball keystrokes
are labeled for use in AppleScript. That or a comprehensive list of
how to type an F19 or fn + F6 etc.
I' aware of this set of values which may be used with the key code
function
F1 , $7A , 122
F2 , $78 , 120
F3 , $63 , 99
F4 , $76 , 118
F5 , $60 , 96
F6 , $61 , 97
F7 , $62 , 98
F8 , $64 , 100
F9 , $65 , 101
F10 , $6D , 109
F11 , $67 , 103
F12 , $6F , 111
F13 , $69 , 105
F14 , $6B , 107
F16 , $71 , 113
F17 , $6A , 106
cf Full Key Codes at
http://softwares.bajram.com/utilities/#Full_Key_Codes
With keycodes, don't use keystroke "a" but use
key code 12
set theapp to "TextEdit"
tell application theapp to activate
tell application "System Events" to tell (first process whose title
is theapp)
key code 12
end tell
Yvan KOENIG (from FRANCE samedi 28 juin 2008 09:46:33) _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden