Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Hypercard > Check if a key ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 92 of 145
Post > Topic >>

Check if a key is down, and which one is

by Fjordur <fjordur@[EMAIL PROTECTED] > Jan 27, 2005 at 08:24 PM

Hi,

Can anyone help with a Hypertalk question?

I want to check if a key is down and, if yes, which key is (or are).
Something like "if the ****ftKey is down".  Actually I want to write a
'launcher' stack with a script along the following lines:

on openStack
  if Akey is down then  -- well, the idea is to see if the 'A' key is down
    open applicationA
  endif
  if Gkey is down then open applicationG
  if Zkey is down then open applicationZ
  etc...
end openStack

The idea is to put this stack in the startup folder, and hold the key(s)
corresponding to the application(s) I want to launch at startup while the
Mac is booting.

Ideally, it would be nice if I could check for several keys that are held
down together (up to 10, as that's the number of my fingers  :-)

The 'keydown' handler won't do, it's got to be a test in the openStack
handler.  I can't find a hypertalk command for this.
-- 
Fjordur
 




 8 Posts in Topic:
Check if a key is down, and which one is
Fjordur <fjordur@[EMAI  2005-01-27 20:24:21 
Re: Check if a key is down, and which one is
Harry Whitfield <g6auc  2005-01-28 12:23:55 
Re: Check if a key is down, and which one is
Fjordur <fjordur@[EMAI  2005-01-28 14:24:16 
Re: Check if a key is down, and which one is
Harry Whitfield <g6auc  2005-01-28 14:35:11 
Re: Check if a key is down, and which one is
Fjordur <fjordur@[EMAI  2005-01-28 16:06:35 
Re: Check if a key is down, and which one is
Harry Whitfield <g6auc  2005-01-28 18:38:59 
Re: Check if a key is down, and which one is
dunbarx@[EMAIL PROTECTED]  2005-01-31 17:19:04 
Re: Check if a key is down, and which one is
Fjordur <fjordur@[EMAI  2005-02-01 11:06:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 22:59:53 CDT 2008.