Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I would like to be able to 'send' keystrokes to a DOS program from within a Windows program. The windows program has the ability to send keystrokes to other Windows programs but not DOS.
Is there a way to control a DOS program by sending keystrokes? Thank you.

i think a lot depends on the "dos" program you wish to control. that information would narrow down the possibilities.
I have always used pipe-files for those pgms that observe
"read std-input"/"write std-output" redirection. sendkeys
will only send keys to the dos-box, and might not make
it to the intended target. things like games are completely
open to doubt. EDIT is kind of in between dos & windows,
so it might or might not respond. I decline to take time to test
all the options, but use VB to appactivate the window and
see what happens. best of luck.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |