• 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: Question: Key state as test?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: Key state as test?


  • Subject: Re: Question: Key state as test?
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 23 May 2002 23:39:37 -0700

On 5/23/02 11:31 PM, "email@hidden" <email@hidden> wrote:

> I'm trying to modify an existing script to check for the key-press state of a
> modifier key (option key) to decide whether to execute a specific handler
> routine within the script, but I can't figure out how to test for the
> key-down state... I'd like to do it without a dialog box... Any help? OS
> 9.2.1 / AS 1.7

You need Jon's Commands' 'keys pressed' or Akua Sweets' 'input state's
modifier keys'. Test them out with your option key pressed and you'll see
how to do it. (For the test, you may need display dialog to see the result,
but once you know how to do it, you won't.)

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Question: Key state as test? (From: email@hidden)

  • Prev by Date: Question: Key state as test?
  • Next by Date: Re: OSAX on X
  • Previous by thread: Question: Key state as test?
  • Next by thread: getting application running information.
  • Index(es):
    • Date
    • Thread