Re: Detecting a keydown or key up.
Re: Detecting a keydown or key up.
- Subject: Re: Detecting a keydown or key up.
- From: Shane Stanley <email@hidden>
- Date: Wed, 03 Aug 2011 09:45:22 +1000
- Thread-topic: Detecting a keydown or key up.
On 3/8/11 9:35 AM, "Luther Fuller" <email@hidden> wrote:
> and it works! ... but it won't quit. I have to quit manually before I can run
> it again.
> (I must be missing something new in Lion AppleScript)
It's a Cocoa app, and they don't quit automatically like AS applets. Just
add an error number -128, or possibly a quit command.
> And it also works in 10.6.8.
Yep. The only thing really new in Lion is the interface in ASE.
>
> And, I suspect that if I look at the output of NSAlternateKeyMask and
> NSEvent's modifierFlags I will see something that will let me include 'shift',
> 'command', 'control' &c. (?)
Alex's message had the others in a comment:
-- Available mask enums: NSAlphaShiftKeyMask, NSShiftKeyMask,
NSControlKeyMask, NSAlternateKeyMask, NSCommandKeyMask, NSNumericPadKeyMask,
NSHelpKeyMask, NSFunctionKeyMask
I keep trying to tell you guys that this AppleScriptObjC stuff is
powerful...
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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