Jeremy White wrote:
> Robert May wrote:
Is this a good thing to pursue? Suggestions for changes or alternative approaches welcome. A better name for the script would be good too!

Nice - with a good set of examples it would certainly show what Win32-GUI is capable off.

Based on the feedback I'm going to have a go at completing this. I want to do some more work on understanding Win32 Consoles - partly spurred on by this effort, and partly spurred on by Steve Loughran's questions about launching sub-processes on the users' list.

I'm thinking about a Win32::GUI::Console module that extends the Win32::Console module (another of Aldo's creations), to wrap the things that GUI apps might find useful when dealing with Consoles (I already have something that I call Win32::GUI::Console that wraps a RichEdit Control for use as pseudo Console).

Something like this:
- ability to close Console if there is one present and its not needed
- automatically re-create a console window if any reads/writes are done on stdin/out/err
- ability to set the Console window title, Icon etc.

Eventually remove GetPerlWindow() from GUI.xs??

It'd be especially good if you could then use the module like
  perl -MWin32::GUI::Console script.pl
to launch apps that weren't written with Console hiding in mind, and you didn't know whether there would be console output of not; Additionally wperl -MWin32::GUI::Console script.pl would provide a console if any input or output was required, meaning that you wouldn't miss warnings etc.

Regards,
Rob.
--
Robert May
Win32::GUI, a perl extension for native Win32 applications
http://perl-win32-gui.sourceforge.net/


Reply via email to