[comp.sys.mac.hypercard] trapping single keystrokes in HC

dl1@eagle.ukc.ac.uk (D.Langford) (06/15/88)

With apologies for probably missing something blindingly obvious; but
/is/ there a way of grabbing single keypresses (to check them against a
list) so that I can direct the user to different cards? I know I could
easily use a button; but for this particular purpose I don't want to
ask the user to do anything except hitting a few number keys.

I've tried trapping keypresses into an invisible field... flaky, and very
slow. Can HC manage the equivalent of INKEY$ or GET, like my not-until
now-missed old Apple II?

duncan

GFX@PSUVM.BITNET (06/18/88)

In article <5245@eagle.ukc.ac.uk>, dl1@eagle.ukc.ac.uk (D.Langford) says:
>
>/is/ there a way of grabbing single keypresses

INKEY is an XCMD that does just that.  It is available on compuserve
in Apple's AppHyper forum
-------

Stephane Gauvin : GFX@PSUVM : (814) 237-4979 : Compuserve 73057,1763
Interests: Marketing: New products, Mathematical Models, Game Theory
           Computing: AI, MacIntosh, Hypercard