Sending Navigation keys to a DOS window 
Author Message
 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



Sun, 25 Nov 2001 03:00:00 GMT  
 Sending Navigation keys to a DOS window

Quote:
>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.

Problem solved using PushKeys - http://www.ozemail.com.au/~clatta

{NUMLOCK} was on

Christopher Latta



Thu, 29 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How 2 send [F2] key to an MS-DOS Window

2. Sending keys to a DOS window

3. Send Function Key to Dos Window

4. Send F3 Key to a MS-DOS application in a Window

5. Sending Keys to application in a DOS window {NT4.0}

6. Help with sending function keys and cursor keys to DOS app

7. Sending Alt + key and Control + key to window via Postmessage

8. Send keys to window without activating window

9. sending keys from VB to dos APP

10. HELP! Shell and sending keys to DOS

11. Sending Key Strokes to Hidden DOS apps

12. Send Keys to DOS Application

 

 
Powered by phpBB® Forum Software