Re: Chack keys pressed
Re: Chack keys pressed
- Subject: Re: Chack keys pressed
- From: Walter Ian Kaye <email@hidden>
- Date: Thu, 18 Dec 2003 15:44:47 -0800
At 03:30p +0100 10/20/1948, VRic didst inscribe upon an electronic papyrus:
10/12/03 Walter Ian Kaye
>>Is there a way for AppleScript to check if the keys command, option
>>and shift are pressed??
>>
>>I need something in that way... Any help???
>
>Jon's Commands:
>http://www.seanet.com/~jonpugh/
>
>And in fact, the command is actually called 'keys pressed' :-)
There's no need for an osax: under Mac OS 9 it's in the AppleScript
extension's own dictionary, so it's a bit hard to find since Script
Editor won't show it (I used Smile to find out, then used ResEdit to copy
AppleScript's resource to an aete in a dummy file to read it in Apple's
Script Editor, I'll give directions if someone is interested).
Example:
if option down is in modifiers then display dialog "option key is down"
I tried that in Jaguar; it fails. "Can't get modifiers."
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.