topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 11:36 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: application independant status tray icon  (Read 4723 times)

Bert36

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
IDEA: application independant status tray icon
« on: January 20, 2007, 08:22 AM »
Hi there,

I am looking for a way to display on-screen (in a very inconspicuous way) what function I have assigned to the button of my pen on a wacom graphics tablet. I only have 1 button on this pen and I change the function assigned to it by means of AutoIt scripts. But I would like some visual feedback so I can actually see what function is assigned at any time.
I was thinking along the lines of a tray-icon that changes color or shape. Probably best way to do this is to have the tray-icon change color by means of a commandline option which one can easily program into an AutoIt script.
So, effectively I am looking for a "status-led" that I can set to any color I want at will.

Hope someone is interested in this.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: application independant status tray icon
« Reply #1 on: January 20, 2007, 08:42 AM »
I'm not familiarised with auto-it, but from what i know of autohotkey, there should be some instruction to change the icon of the script you use to change that button's function.

Bert36

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: IDEA: application independant status tray icon
« Reply #2 on: January 20, 2007, 09:36 AM »
Thanks for the reply.

That maybe so, but the problem is, that the script icon disappears once the script has finished. Obviously I want a permanent status indicator.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: application independant status tray icon
« Reply #3 on: January 20, 2007, 10:01 AM »
Only now did i understand what you want. Right, that makes all sense.
Here's the code in autohotkeys to do what you ask for:

#persistent
#singleinstance

Menu, tray, icon, %1%,1
return
If you'd like to run it, just download ahk from www.autohotkey.com. (if you prefer, i could compile it and post the .exe).

All you have to do is call it with an argument. That argument has to be the name of the icon you'd like to use. To change the icon, just run it again with a new parameter, the old version will be closed.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: application independant status tray icon
« Reply #4 on: January 20, 2007, 10:04 AM »
Here is what I was writing but before i could post it jgp came up with a better solution  :o

This is actually a great idea for a tiny little generic program.
May I suggest a program named GenericTrayIconDisplayer.exe which runs in the tray.
Ideally written in something lightweight and efficient but could be done with anything.
It has only one job, which is to listen for a Windows Message Broadcast telling it what Icon File to load and display.

So that you would run this tool, and it just sits there until some other program or script broadcasts a message to it saying "Go load C:\myicon1.ico", at which point it loads it.



Bert36

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: IDEA: application independant status tray icon
« Reply #5 on: January 20, 2007, 10:18 AM »
Thanks jpg,

I'll see if I can find this functionality in AutoIt, if not I might take you up on you exe-offer :-)
And mouser, I agree with you, I think something like a small program (or maybe object) like this could benefit some programmers and users.