Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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/ in @INC (@INC contains: . C:/Perl/lib C:/Perl/site/lib .) at 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.


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://295113]
Approved by jdtoronto
[erix]: ah! Those germans again! ... they have a lot to answer for ;-)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2018-06-19 09:12 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.