boz@eleazar.dartmouth.edu (John Boswell) (10/04/88)
Hi... I was wondering if there was a way to access buttons from the keyboard...i.e I have Button X that does something, but I have to click on it constantly while inputting data. It would be really convenient to have a bg script that traps for "option-x" where x is some key. When I type "option-x", it would send a mouseUp to the proper button. Any help is appreciated... boz (boz@eleazar.dartmouth.edu)
Scot.Kamins@f555.n125.z1.FIDONET.ORG (Scot Kamins) (10/04/88)
Well, you can do anything with XCMDs; but from within HyperTalk itself trapping keystrokes is --er--difficult. You CAN trap control-key combinations by using the handler "on controlKey var" where "var" is the number of a particular key; this method, however, works only on Apple Desktop Bus keyboards; the other types don't have control keys. If the machines you're writing for all use one of the ADB keyboards, let me know and I'll send you more details on trapping control keys. -- Scot Kamins - via FidoNet node 1:125/406 UUCP: ...!sun!hoptoad!fidogate!555!Scot.Kamins ARPA: Scot.Kamins@f555.n125.z1.FIDONET.ORG
sun@venus.ycc.yale.edu (10/05/88)
I see a XFCN on the Developer's Stack 1.2r named InKey() that returns the key strokes. I tested it with alphanumeric key stroke together with option key, and it works fine. I don't know if this will solve your problem. Just a piece of information. -- Kang Sun