Passing keystrokes to DOS via Windows clipboard using VB 
Author Message
 Passing keystrokes to DOS via Windows clipboard using VB



Quote:
>I am posting this on behalf of a friend without internet access...

>" I need to automate control of a DOS program. I've managed to
>simulate keystrokes by running the DOS program in a window, putting
>characters/strings in the clipboard then pasting to the window.This
>works fine for all keys that have an ASCII value but I need to
>simulate the pressing of function keys and don't know how to do it. "

>Can anyone please help?

You might try using a VBX/OCX like  VBASM to "POKE" the
scan codes into the keyboard buffer.  I'm currently researching
trying to do the opposite of what your trying (putting chars into a buffer
from VBDOS to a Windows 3.1 app) so, if you want the DOS basic code
to access the keyboard buffer, let me know and I'll send it along.

Also, If anyone has any experience sending characters from a DOS
app to a Windows app in win3.1 please let me know.

HTH,
Bryan

_________________________________________________________
New Vision Software             "When the going gets weird,"
Bryan Stafford                            "the weird turn pro."

                                         Fear and Loathing in LasVegas



Sun, 28 Mar 1999 03:00:00 GMT  
 Passing keystrokes to DOS via Windows clipboard using VB

I am posting this on behalf of a friend without internet access...

" I need to automate control of a DOS program. I've managed to
simulate keystrokes by running the DOS program in a window, putting
characters/strings in the clipboard then pasting to the window.This
works fine for all keys that have an ASCII value but I need to
simulate the pressing of function keys and don't know how to do it. "

Can anyone please help?

Justin
________________________________________________________



Sun, 28 Mar 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Passing keystrokes to an MS-DOS app

2. Passing Keystrokes to DOS

3. Pass Keystrokes to a DOS window ?

4. Intercept keystrokes before passing back to Windows

5. VBDOS Basic DOS using Timer in Windows DOS box

6. Sending keystrokes to a DOS program using VB6

7. VBDOS Basic DOS using Timer in Windows DOS box

8. Problem using sendkeys command to send keystrokes to DOS application

9. Passing drive\dir\filename params to a DOS program via SHELL

10. Using Clipboard via vba (Excel)?

11. VB: Copy Text From DOS Window To Clipboard As Text

12. copying text to the windows clipboard using DHTML

 

 
Powered by phpBB® Forum Software