Reini Urban wrote:
Robert May schrieb:
...
If only there was a way to ask AllocWindow() to create a hidden console,
but I read that it's impossible. (I do want to explore the possibility
of using a global hook to see if I can catch one of the messages that
happens early during window creation, and fiddle the WS_VISIBLE style,
but I'm not hopeful!)
You can create it offscreen, to the right or left.
So you can use CreateProcess() with
dwCreationFlags += CREATE_NEW_CONSOLE, instead of AllocConsole()
And STARTUPINFO.dwX holds the offscreen position.
Interesting idea, but I don't think I'm following you here.
CreateProcess() will create me a new process, and I can't see how I'd
read/write to that process's console from my perl script.
Regards,
Rob.