Click to See Complete Forum and Search --> : How to send keystokes to a DOS Window app thru VB


nilch
October 27th, 1999, 10:25 PM
I want to repeat some sequence of keystokes in a dos window app from VB, so that the whole process can be automated and repeated several times.

Do I set a DDE connection. Is a DDE connection with a DOS app possible at all? Otherwise how do I send keystokes to the DOS Window from VB and make the DOS window as the active window the moment I press a button in VB ?

Thanx

Lothar Haensler
October 28th, 1999, 01:57 AM
you cannot directly use sendkeys for a DOS app AFAIK, but MSDN article Q142819 has details for using Sendkeys in conjunction with the clipboard.
check it out.