Re: How Do I Tell System Events to do Keystroke Num-3
Re: How Do I Tell System Events to do Keystroke Num-3
- Subject: Re: How Do I Tell System Events to do Keystroke Num-3
- From: Stephen Jonke <email@hidden>
- Date: Fri, 17 Jun 2005 08:42:20 -0400
There was a similar question recently and Scott's answer is correct.
Note that to find out what value to use for "key code" for a given
key, you can use the tool "AsyncKeys!". What you need is the async
key number, and this program will tell you what it is. You can find
it on version tracker. Run it, press the key you want, and it shows
the async key number (as well as ascii, but you need the async key
number.) Use that number as the argument to "key code".
Steve
On Jun 16, 2005, at 9:05 PM, Scott Babcock wrote:
Use the 'key code' event:
tell application "System Events"
tell application process "Quarkxpress"
key code 85
end tell
end tell
-----Original Message-----
Date: Wed, 15 Jun 2005 18:18:33 -0400
From: "Kennedy, Colin" <email@hidden>
Subject: How Do I Tell System Events to do Keystroke Num-3
To: <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
tell application "System Events"
tell application "System Events" of process "Quarkxpress"
keystroke (NumberPad -3)
end tell
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden