
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