Posted by Howard Casto on 1, 2002 at 8:10 PM:
In Reply to: Re: Happy New Year everyone... an update on key forcing..... posted by Cryofax on 1, 2002 at 3:40 PM:
Pretty much..... for my purposes I haven't been hooking the keys rather letting them pass through, but I do know how to catch them using the same commands. It's as easy as clearing out the buffer before you send the new keys back...
the trouble with that is it only works on about 95% on the apps out there.... some (read modeler) use wierd interfaces with direct input which hog the kb buffer. You can still send additional keys in these cases, but you can't hook the original keypress. I don't have any sample code ready yet as I've been plugging it into the rd as I go but fi you remind me sometime next week I'll send over some samples along with everything I've got...
: Hey Howard,
:
: So is your technique actually doing a global KB hook, and when it sees a certain key, say "a", it will instead send "CTRL + X" or whatever is the actual escape code for that Emu?
: Does the key pressed ("a" in this case) still get through, or is it thrown out and "CTRL + X" put into the buffer?
: If its a true global hook that replaces pushed keystrokes then I am VERY interested in seeing your example! My e-mail is Cryofax@tqos.net
:
: Thanks,
: - Cryo