• 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: Key down (or up) events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key down (or up) events


  • Subject: Re: Key down (or up) events
  • From: Håvard Graudo <email@hidden>
  • Date: Tue, 05 Jul 2016 16:52:25 +0200

Here is another solution, if you also need to support older OSes. I have used this at least since 10.6. (probably 10.5) and up to 10.11.

Download and put this somewhere.
https://filer.inkognito.no/_o8n0OAOhF2n17R

Call it and it will return a string of the keys down. Example:

set modKeys to do shell script (quoted form of "/Library/Application Support/ScriptLibs/getkeys")
—> "shift control option command capslock fn”

It ignores other keys

Have used it for years, but could not find the source file atm, but if I dig a bit deeper I probably would – you may prefer to compile it yourself.

Håvard







> 2. jul. 2016 kl. 10.35 skrev John Stewart <email@hidden>:
>
> On 7/1/16 at 5:43 PM, email@hidden (Yvan KOENIG) wrote:
>
>> I retrieved an old script from Shane STANLEY.
>
> Thank you Yvan, I'll see if that will work. :)
>
> JBS
> --
> The effect of violent dislike between groups has always created an indifference to the welfare and honor of the state. - Thomas Babington Macaulay
>
>
> _______________________________________________
> 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



 _______________________________________________
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


  • Follow-Ups:
    • Re: Key down (or up) events
      • From: John Stewart <email@hidden>
References: 
 >Re: Key down (or up) events (From: John Stewart <email@hidden>)

  • Prev by Date: Re: scripting OmniGraffle?
  • Next by Date: Re: Key down (or up) events
  • Previous by thread: Re: Compiler oddities
  • Next by thread: Re: Key down (or up) events
  • Index(es):
    • Date
    • Thread