Link to home
Start Free TrialLog in
Avatar of ptan
ptan

asked on

Faking Keyboard Input to a CMD window

Does anyone know how to send keystrokes to a CMD windows under Win32 (Windows NT).  I need to be able to send keystrokes to a legacy MSDOS application from another Win32 application, and I also need to be able to examine the screen buffer output from the DOS App.

The Dos app does direct writes to the screen.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Irene012397
Irene012397

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lightningstalker
lightningstalker

Most times you can do this using redirection like this:

dosapp < keyboardinputfile > output