Newsgroups: comp.sys.atari.st.tech Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!jato!vsnyder From: vsnyder@jato.jpl.nasa.gov (Van Snyder) Subject: Re: Simulating keypress Message-ID: <1991Apr6.000637.20676@jato.jpl.nasa.gov> Reply-To: vsnyder@jato.Jpl.Nasa.Gov (Van Snyder) Organization: Jet Propulsion Laboratory, Pasadena, CA References: <1991Apr5.151946.25763@etek.chalmers.se> Date: Sat, 6 Apr 91 00:06:37 GMT In article <1991Apr5.151946.25763@etek.chalmers.se> fabian@etek.chalmers.se (Martin Fabian) writes: > >Is there any (legal) way to simulate a keypress from inside >a program. Since the ikbdsys reads the keys directly off the >UART, this seems like 'mission: impossible' to me. Any >suggestions any one ? > I'd like to get hold of keypresses. It's easy to get hold of mouse motions by inserting your own handler in place of the mousevec in the struct returned by XBIOS' kbdvec function. But how do you get hold of keypresses? Must you intercept the keyboard packet handler and interpret all the packets? Thanks in advance, -- vsnyder@jato.Jpl.Nasa.Gov ames!elroy!jato!vsnyder vsnyder@jato.uucp