Jun 23, 2005 #1 bdc138 MIS Joined Sep 7, 2002 Messages 16 Location 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.
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.
Jun 23, 2005 #2 vladk Programmer Joined May 1, 2001 Messages 991 Location US You might want to employ these API functions. IsWindow FindWindow SetForegroundWindow ShowWindow PostMessage SendMessage FindWindowEx DefWindowProc GetClassName SetWindowPos Upvote 0 Downvote
You might want to employ these API functions. IsWindow FindWindow SetForegroundWindow ShowWindow PostMessage SendMessage FindWindowEx DefWindowProc GetClassName SetWindowPos
Jun 24, 2005 #3 strongm MIS Joined May 24, 2001 Messages 20,264 Location GB You are trying to interact with an already-running DOS-based program? or with one that you launch? Upvote 0 Downvote
Jun 24, 2005 Thread starter #4 bdc138 MIS Joined Sep 7, 2002 Messages 16 Location US One that I launch. Upvote 0 Downvote
Jun 24, 2005 #5 strongm MIS Joined May 24, 2001 Messages 20,264 Location GB Ok. In which case do a keyword search in this forum for ... oh, try "console appplication". Should provide a number of ideas and methods Upvote 0 Downvote
Ok. In which case do a keyword search in this forum for ... oh, try "console appplication". Should provide a number of ideas and methods