in reply to Tray Icon POP3 / IMAP Client with Win32::GUI
This is really cool! I gave it a go and I really like how it works so far. Some neat features to add would be a right click menu on the taskbar icon for things like "Check Mail", "Exit", "Read Messages", and "Send Mail" (if you add that ability).
I know that you probably use the DOS window for debugging etc, but you may want to include a way to kill that when running your program. I found a quick way to do this somewhere (sorry I don't remember, this isn't mine) - basically create a file called 'start.pl' and use this snippet of code:
You could probably clean that up a lot (like checking for perl install path etc), but it will do the trick for most default installations. But you need a way to exit your program before you add this =) (I tried it and it worked, I just had to kill perl.exe in the task manager to exit your application).
Just for fun, I also tried Perl2exe on traymail using the '-gui' option and that works as well (you need the registered version of Perl2exe to use the -gui option I beleive). To exit, I just killed the 'traymail.exe' app in task manager.
Keep up the cool work LupoX! ++
djw
I know that you probably use the DOS window for debugging etc, but you may want to include a way to kill that when running your program. I found a quick way to do this somewhere (sorry I don't remember, this isn't mine) - basically create a file called 'start.pl' and use this snippet of code:
use Win32; use Win32::Process; Win32::Process::Create($Win32::Process::Create::ProcessObj, 'C:/perl/bin/perl.exe', 'perl traymail.pl', 0, DETACHED_PROCESS, ".") or die print_error(); sub print_error() { return Win32::FormatMessage(Win32::GetLastError() ); }
You could probably clean that up a lot (like checking for perl install path etc), but it will do the trick for most default installations. But you need a way to exit your program before you add this =) (I tried it and it worked, I just had to kill perl.exe in the task manager to exit your application).
Just for fun, I also tried Perl2exe on traymail using the '-gui' option and that works as well (you need the registered version of Perl2exe to use the -gui option I beleive). To exit, I just killed the 'traymail.exe' app in task manager.
Keep up the cool work LupoX! ++
djw
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Tray Icon POP3 / IMAP Client with Win32::GUI
by LupoX (Pilgrim) on Feb 27, 2002 at 21:15 UTC | |
(bbfu) (hide DOS window) Re2: Tray Icon POP3 / IMAP Client with Win32::GUI
by bbfu (Curate) on Mar 12, 2002 at 00:53 UTC | |
by jplindstrom (Monsignor) on Mar 12, 2002 at 17:39 UTC |
In Section
Code Catacombs