Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!farrier From: farrier@Apple.COM (Cary Farrier) Newsgroups: comp.sys.apple Subject: Re: Technical Questions (mostly ADB) Keywords: ADB, System 38 Message-ID: <1415@internal.Apple.COM> Date: 17 Apr 89 16:14:28 GMT References: <8904141133.aa28150@SMOKE.BRL.MIL> <688@ultb.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 29 In article <688@ultb.UUCP> lmb7421@ultb.UUCP (L.M. Barstow (674SPS)) writes: >Could any technical gurus out there help with the following questions? > >b) how do you access the data from the keyboard (keycodes) directly? > Also, how do you insert keystrokes into the buffer? You can move the ADB keyboard to another device number, then set up your own completion routine to handle the key events. You will then get the down and up transition of each key. You then post each event with a SendInfo call to the ADB tool set using the keyCode command. This is all documented in chapter 3 of Volume 1 of the tool box references. If you would like some example code, then email me with your address and I will get it to you. >-- >Les Barstow LMB7421@RITVAX.BITNET >...rutgers!rochester!ritcv!ultb!lmb7421.UUCP >"I know you think you know what you thought I said, but >you don't realize that what you thought I said was not what I meant" Cary Farrier -- +----------------------------------------------------------------+ | This message does in no way reflect the views or opinions of | | any organization. In fact, they illustrate just how | | disorganized things really are. | +----------------------------------------------------------------+