Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!ux.acs!hughes From: hughes@ux.acs.umn.edu (Steve Hughes) Newsgroups: comp.sys.mac.hypercard Subject: Reading Function Keys from repeat...until loop: HOW? Message-ID: <2775@ux.acs.umn.edu> Date: 27 Nov 90 22:05:17 GMT Reply-To: hughes@ux.acs.umn.edu (Steve Hughes) Organization: University of Minnesota, Academic Computing Services Lines: 31 There must be a way.... Man, all I want out of life is to check the function keys while I'm executing a repeat...until handler. I want it to work like this: put the ticks + 180 into endTick repeat until the ticks >= endTick if functionKey then if functionKey = 1 then doThis if functionKey = 2 then doThat if functionKey = 3 then doThatOtherThing else beep end if end repeat Now, I know that this is not how to use functionKey, and that what I probably really want to do is use some kind of XFCN, but given that this must run with HyperCard 2.0, I'm wondering if there are XFCNs out there to do this (or does HC 2.0 have this ability and I'm not reading the right documentation?) It doesn't seem like simply reading the @#%&! function keys from within a handler should be so difficult, yet I'm bashing my brains trying to make it work! Can onyone help? Thanks, ---Steve Hughes hughes@ux.acs.umn.edu