I've tried to implement this feature too, but I get a "bad 
expression: expecting operator"-error...
Here's the content:


If (Muted) then do cl.SetIcon("MainBar", 11, "c:\winnt\system32
\sndvol32.exe", 1) else  cl.SetIcon("MainBar", 11, "c:\winnt\system32
\sndvol32.exe", 2)

What's wrong with it?
Koen

--- In [email protected], "Ted Wall" <[EMAIL PROTECTED]> wrote:
> 
> --- 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.









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/
 



Reply via email to