Re: Key down (or up) events
Re: Key down (or up) events
- Subject: Re: Key down (or up) events
- From: John Stewart <email@hidden>
- Date: Tue, 05 Jul 2016 18:20:52 -0400
On 7/5/16 at 10:52 AM, email@hidden (Håvard Graudo) wrote:
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.
Unfortunately this would require installation of third party
software that I cannot vet as the file has been precompiled and
is without any notes. For my own usage it looks like it would
fit the requirements.
JBS
_______________________________________________
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