Okay, I found that it is not a good idea to put a script in a 
loop! :) So, how can I get PP to monitor a state? Should I set up a 
script to run every so often? How often?


--- 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