Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Key Strokes to Non-Windows Based Programs

Status
Not open for further replies.

bdc138

MIS
Sep 7, 2002
16
US
I'm trying to send key strokes to a DOS based program using VB6 but the SendKey syntax won't work. Does anyone know a way around this? Thanks.
 
You might want to employ these API functions.

IsWindow
FindWindow
SetForegroundWindow
ShowWindow
PostMessage
SendMessage
FindWindowEx
DefWindowProc
GetClassName
SetWindowPos
 
You are trying to interact with an already-running DOS-based program? or with one that you launch?
 
Ok. In which case do a keyword search in this forum for ... oh, try "console appplication". Should provide a number of ideas and methods
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top