Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!fub!dobag.in-berlin.de!nicedel!lynx1!jelal!nox From: nox@jelal.north.de (Juergen Lock) Newsgroups: comp.sys.atari.st.tech Subject: Re: Simulating keypress Message-ID: Date: 19 Apr 91 00:17:14 GMT Article-I.D.: jelal.a1334661 References: <2654.04.91@drdhh.hanse.de> Distribution: comp Organization: home Lines: 24 X-Version: ST Inews V. 0.4 moin bjoern! From article <2654.04.91@drdhh.hanse.de>, by bjoern@drdhh.hanse.de (Bjoern Kriews): > From article <1991Apr5.151946.25763@etek.chalmers.se>, by fabian@etek.chalmers.se (Martin Fabian): >> >> Is there any (legal) way to simulate a keypress from inside >> a program. > > This is not too legal, but it works: > [queue_key() code deleted] yes, but beware of race conditions! or in other words, disabling interrupts while doing these things sounds like a veeery good idea... (reminds me of that `phantom typist' thing - is it fixed now? well at least you're _not_ the first one who, while dealing with interrupts, didn't think of murphy's law 25 hours a day. :-) > > Hope that helps, > Bjoern so do i, (and bjoern, tell me when you read this - your one made those ~100km from you to me in `only' seven days!), Juergen PS: yes you guess it, my german is better... -- J"urgen Lock / ..!nicedel!lynx1!jelal!nox / d09c@dhbrrz41.bitnet ...ohne Gewehr