Re: Detecting a keydown or key up.
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.
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