• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How Do I Tell System Events to do Keystroke Num-3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: How Do I Tell System Events to do Keystroke Num-3 (From: "Scott Babcock" <email@hidden>)

  • Prev by Date: Script wont update mail account.
  • Next by Date: can't get version
  • Previous by thread: RE: How Do I Tell System Events to do Keystroke Num-3
  • Next by thread: Persistent window bounds on disk image Finder windows
  • Index(es):
    • Date
    • Thread