
Sending Navigation keys to a DOS window
Hi ALl,
I am trying to send Navigation keys from VB to a DOS window, (Up, Down,
Left, Right) etc. I have set up the copy to the clipboard and paste to
DOS thing that the documentation suggests, I also have tried the
PushKeys shareware program, both work fairly well for sending regular
text to the DOS Window but both fail at sending Navigation keys.
I suspect this has something to do with the fact that in DOS if you
press an arrow key it generates two characters (chr$(0) and chr$(80) for
the DownKey., for example).
In the MSDN help there is a question from a guy asking how to do this
and Dr. Gui tells him "Just send {LEFT} {RIGHT} {DOWN} etc." This does
not work using the copy to clipboard method, I tried it and it just
copies the string "{LEFT}" to the DOS window.
I suspect if it is possible at all it requires and API call but which
one?
Any help would be appreciated.
--
-Dick Christoph
http://www.*-*-*.com/ ~dchristo