[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

System Tray Icon

List Recv

12/12/2005 11:44:00 PM

Any one know of a simple way to load an icon to the system tray via
Ruby?

Ideally, I'd like cross platform, but would settle for Windows only.

My goal is to make a simple utility that runs in the background, runs
the unit tests, and goes red or green. These are a dime a dozen for
things like JUnit, but haven't found one for Ruby.

2 Answers

Wilson Bilkovich

12/13/2005 12:14:00 AM

0

On 12/12/05, listrecv@gmail.com <listrecv@gmail.com> wrote:
> Any one know of a simple way to load an icon to the system tray via
> Ruby?
>
> Ideally, I'd like cross platform, but would settle for Windows only.
>
> My goal is to make a simple utility that runs in the background, runs
> the unit tests, and goes red or green. These are a dime a dozen for
> things like JUnit, but haven't found one for Ruby.
>
I don't believe that there's any cross-platform way to do this.
Here's how in Windows, though:
http://aspn.activestate.com/ASPN/Mail/Message/ruby-ta...

The API call at play here is this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shell_noti...

You basically use String.pack to build the "NOTIFYICONDATA" data
structure that the Win32 call expects.

--Wilson.


daz

12/13/2005 10:24:00 AM

0


listrecv wrote:
> Any one know of a simple way to load an icon to the system tray via
> Ruby?
>
> Ideally, I'd like cross platform, but would settle for Windows only.
>
> My goal is to make a simple utility that runs in the background, runs
> the unit tests, and goes red or green. These are a dime a dozen for
> things like JUnit, but haven't found one for Ruby.
>


Here's a thread from two weeks back with "system tray" in the subject line:

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/167555?167445-168102+split-mod...


daz