Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!oliveb!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: comp.sys.amiga.tech Subject: Re: input.device stuff Message-ID: <2814@amiga.UUCP> Date: 28 Aug 88 21:45:52 GMT References: <788@applix.UUCP> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 28 In article <788@applix.UUCP> scott@applix.UUCP (Scott Evernden) writes: )I am trying to feed a stream of ASCII characters into the input.device. )I'm trying to simulate keyboard activity. ) )The input.device expects (optionally qualified) raw key presses and )releases. So, to do what I want, for each character, I must determine )a raw key code and appropriate qualifiers which will generate it. In )other words, I need something like a RawKeyConvert() that runs backwards )(accepts ASCII and produces a raw key event). The function InvertKeyMap() in commodities.library (part of Commodities Exchange) does what you want. Source has been distributed, but you can't steal hunks of it wholesale. Perhaps you will find ikm.c educational. One good think about it living in a library (hopefully soon to be semi-standard) is that it undoubtedly has bugs (none known) which can be fixed retroactively for client programs by updating the library. And don't forget dead keys. jimm -- Jim Mackraz, I and I Computing amiga!jimm BIX:jmackraz Opinions are my own. Comments regarding the Amiga operating system, and all others, are not to be taken as Commodore official policy.