You could also make use of one bit of the Win32::Gui module.
my ($DOS)=Win32::GUI::GetPerlWindow();
Win32::GUI::Hide($DOS);
Also see Hiding the DOS window on Win32 for more info
| [reply] [d/l] |
perl2exe, when used to compile in gui mode will open a program without opening a dos box first.
Unfortunately, to do this you need to register and pay for the program first :P
$japh->{'Caillte'} = $me;
| [reply] [d/l] |
After browsing through the CookBook this AM on the train, I think I may have found a neat way around this (registering to get the gui).. I'm not sure whether or not I can quote it in full here, but if you have the book you can flip to page 544. Title is "Removing the DOS Shell Window with Windows Perl/Tk"
Basically, you use a seperate perl program to launch the TK window. It makes use of Win32::Process - runs the TK prog as a detached process etc.. kinda fun. I haven't tried this yet but plan to "real soon now" You could then compile into an exe and run the exe to launch the TK app.
If someone tells me that it's alright to quote the CookBook I will post the code here..
<bold>Update:</bold> It works, I have a seperate program to launch a TK app, DOS window flashes and it goes away..
| [reply] |
erm,
Found one solution. I created a .bat file with:
start wperl myperlprog.pl
And there you go the proggie started on it's own.
Does someone has another solution?
My opinions may have changed,
but not the fact that I am right
| [reply] |
| [reply] |