Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Icon on system tray

by Anonymous Monk
on Sep 29, 2003 at 20:56 UTC ( #295113=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to put an icon in the system tray (on Windows of course) when an event happens and have the icon disappear when I double click on it. I found this How do you toggle the system tray icon using Win32::Gui? when I did a Super Search but I can't get the code to run because of this compile error:

Can't locate Win32/GUI.pm in @INC (@INC contains: . C:/Perl/lib C:/Perl/site/lib .) at pm.pl line 1..

Can someone post or point me to a minimal piece of code that will do this?

Replies are listed 'Best First'.
Re: Icon on system tray
by tcf22 (Priest) on Sep 29, 2003 at 21:22 UTC
    Use PPM. Sample follows
    c:>ppm PPM interactive shell (2.1.6) - type 'help' for available commands. PPM> install Win32::GUI intall Win32-GUI(y/n): y ... PPM>

    - Tom

      Thamks Tom! That worked, I guess I was missing the library.
Re: Icon on system tray
by jdtoronto (Prior) on Sep 29, 2003 at 21:06 UTC
    Well, maybe you should install the module first!

    The erorr line you gave us is typical of a module not being installed. Win32::GUI is NOT installed by default in ActiveState Perl. Use PPM as per the documentation and install it, then retry your code.

    jdtoronto

Re: Icon on system tray
by Plankton (Vicar) on Sep 29, 2003 at 21:04 UTC
    I don't regularly use Active State Perl, but have you installed Win32 GUI with ppm

    Plankton: 1% Evil, 99% Hot Gas.
Re: Icon on system tray
by dree (Monsignor) on Sep 30, 2003 at 08:30 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://295113]
Approved by jdtoronto
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-06-26 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.