SendMessage to DOS window...
Is there another way to send information to a DOS window.
The SendMessage API doesn't work for "ConsoleWindowClass".
The message stream is restricted by windows for this class.
I don't want to use the SendKeys function because its flakey.
I need something solid. I am shelling out the command window
to run a program under the Administrator group at logon.
Any ideas or help is greatly appreciated. :cool:
Re: SendMessage to DOS window...
Ten years later I find myself digging through forums begging this same question. Has anyone a solution other than SendKeys? I find that not only is it flakey, I get "\", backslashes, entered on the DOS window for new lines or "enters" from the vba SendKey function.
Is the edit window of the DOS seperate from the "ConsoleWindowClass", and if so, how is that handle accessed for SendKeys to function?
Help is much appreciated.
Re: SendMessage to DOS window...
Had much better luck with this VBSendKeys code. It worked well with my DOS application:
http://www.devx.com/vb2themax/Tip/19094
Re: SendMessage to DOS window...
I wrote this back in 2005 and can be a possible work around for you
http://www.vbforums.com/showthread.php?t=364654