Re: Detecting a keydown or key up.
Re: Detecting a keydown or key up.
- Subject: Re: Detecting a keydown or key up.
- From: "Zavatone, Alex" <email@hidden>
- Date: Wed, 03 Aug 2011 09:57:32 -0700
- Acceptlanguage: en-US
- Thread-topic: Detecting a keydown or key up.
Thanks. Dunno if it is OK or not, but I've got it :)
Thanks.
On Aug 3, 2011, at 3:39 AM, hvarlist wrote:
> Here is another approach. The attached shell script returns a string of the keys currently pressed:
>
> set modKeys to do shell script (quoted form of "/Library/Application Support/getkeys")
> --> "shift command capslock "
> --> "option "
> --> "control shift "
> etc
>
> Parse the string as needed.
>
> HÃ¥vard
>
>
> (... is it OK to post attachments here?)
>
>
>
>
>
> Den 2. aug. 2011 kl. 22.03 skrev Stan Cleveland:
>
>> On Aug 2, 2011, at 8:25 AM, Zavatone, Alex wrote:
>>
>>> I've been looking around with google and wonder if, in this modern age, we still have to monkey around to detect a key's state? Particularly the modifier keys?
>
>
>
>
> [see attached file: getkeys.zip]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> <getkeys.zip><ATT00001..txt>
This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to U.S. Foodservice, Inc and/or its subsidiaries or otherwise confidential or legally privileged. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by U.S. Foodservice. Files attached to this message may only be transmitted using secure systems and appropriate means of encryption, and must be secured using the same level password and security protection with which the file was provided to you. Any unauthorized use, dissemination or disclosure of this message or it's attachments is strictly prohibited.
_______________________________________________
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