--- In [email protected], "edbro9" <[EMAIL PROTECTED]> wrote:
>
> I am trying to change an icon using a script but all it seems to
> do is make no icon show at all. I have an item on a bar that has
> a default icon. I am trying to change it based on the Mute state
> using the following script:
>
> If (Muted) Do
> cl.SetIcon("Topbar", 10, "C:\Program
> Files\PowerPro\icons\PowerPro.icl", 114)
> Else
> cl.SetIcon("Topbar", 10, "C:\Program
> Files\PowerPro\icons\PowerPro.icl", 115)
> EndIf
>
> Now, no matter what the mute state is, it clears the default icon
> and shows nothing. By the way, the default icon is ("C:\Program
> Files\PowerPro\icons\PowerPro.icl", 115), set in the bars
> properties.
>
> I have 3 questions:
> 1. How can I modify this so that it properly sets the icon?
> 2. How can I make the script run continously to monitor the mute
> state? Should I just put it in a continous loop?
> 3. Should I even do this? Will the script running continously
> slow down my system.
1. Add the following to get it to paint
BAR.Format("Topbar","refresh")
2a.
CL.SetLabel("Topbar", 10, ?#Info expr ([EMAIL PROTECTED])#)
; put the above @CallHere LABEL at the top of a very short script
Another way is to use an event.
e=EVENT.Create(5,0,"[EMAIL PROTECTED]")
3.
No. I'd Make it so that when I clicked on the bar the mute state and
Icon were reversed.
I avoid monitors or systems that run continuously except clocks.
Hopefully, I didn't goof something and this will get you started.
Ted
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/