Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!rutgers!cbmvax!vu-vlsi!swatsun!annie From: annie@cs.swarthmore.edu (Annie Fetter) Newsgroups: comp.sys.mac.hypercard Subject: Re: Wanted: a fun stack for a 1-year-old Message-ID: <2429@ilium.cs.swarthmore.edu> Date: 15 Feb 89 13:45:11 GMT Organization: Visual Geometry Project, Swarthmore College, PA Lines: 34 Reply to: annie@cs.swarthmore.edu Organization: Visual Geometry Project, Swarthmore College, PA Keywords: Inkey() XFCN In article <671@internal.Apple.COM> casseres@Apple.COM (David Casseres) writes: > In article <479@grand.UUCP> day@grand.UUCP (Dave Yost) writes: > >My baby loves to play with the keyboard and the mouse. > > I've been wanting to do something like this but haven't been able to > figure out how to intercept keystrokes. Anyone have a clue? > > David Casseres There is an XFCN called Inkey which will do just that. It is available just about anywhere (I don't remember where I got it) but if you can't find it, send me a note and I'll mail you a copy. A sample use would look like this on idle get Inkey() if it is "yes" then scream, yell, and jump up and down else doMenu "Quit Hypercard" end idle goodLuck! -Annie -- Annie Fetter | annie@cs.swarthmore.edu | "We got the VGP-Department of Mathematics | fetter@swarthmr.bitnet | grant! We Swarthmore College | ...!rutgers!bpa!swatsun!annie | Open the Swarthmore, PA 19081 | (215) 328-8225 | champagne!"