• 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: Detecting a keydown or key up.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Detecting a keydown or key up. (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Detecting a keydown or key up.
  • Next by Date: Re: AppleScript-Users Digest, Vol 8, Issue 343
  • Previous by thread: Re: Detecting a keydown or key up.
  • Next by thread: Re: Detecting a keydown or key up.
  • Index(es):
    • Date
    • Thread