• 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: Chack keys pressed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Chack keys pressed
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: How to prevent Classic from starting?
  • Next by Date: Re: set selection to clipboard
  • Previous by thread: Re: Chack keys pressed
  • Next by thread: Re: Chack keys pressed
  • Index(es):
    • Date
    • Thread