• 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: Luther Fuller <email@hidden>
  • Date: Tue, 02 Aug 2011 16:25:32 -0500

On Aug 2, 2011, at 3:57 PM, Zavatone, Alex wrote:
There is indeed deadness in the noggin.  

I did come across this note where it was stated that there must be some sort of event to detect the modifier.

http://lists.apple.com/archives/applescript-studio/2003/Feb/msg00133.html

But what I just love are events that get fired off on mod key down and mod key ups.  If I can open my old Director files, I can pull the code out of them.  I would be create to create an OSAX where we could check the state of the mod keys AND if needed fire off events on key up and key down.

What would be nice in AppleScript is a function that would return, perhaps, a list of names of all keys pressed.
Perhaps it would be called keyboardStatus.
I could use it in an application with instructions such as ...
"Launch the application with the option key pressed and you will get ..."

on run
get keyboardStatus
if the result contains "option" then
-- do this
else
-- do that
end if
end run

Surely there must be something in unix to do this, but I searched a few minutes ago and ... nothing!

 _______________________________________________
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: Detecting a keydown or key up.
      • From: Shane Stanley <email@hidden>
    • Re: Detecting a keydown or key up.
      • From: Robert Poland <email@hidden>
References: 
 >Detecting a keydown or key up. (From: "Zavatone, Alex" <email@hidden>)
 >Re: Detecting a keydown or key up. (From: Luther Fuller <email@hidden>)
 >Re: Detecting a keydown or key up. (From: "Zavatone, Alex" <email@hidden>)
 >Re: Detecting a keydown or key up. (From: Luther Fuller <email@hidden>)
 >Re: Detecting a keydown or key up. (From: "Zavatone, Alex" <email@hidden>)

  • Prev by Date: Re: Detecting a keydown or key up.
  • Next by Date: Re: Detecting a keydown or key up.
  • Previous by thread: Re: Detecting a keydown or key up.
  • Next by thread: Re: Detecting a keydown or key up.
  • Index(es):
    • Date
    • Thread