--- "ebennetthill" <[EMAIL PROTECTED]> wrote:
> I'd like a script to alter the buttons on a button bar to show the
> window that is active.
> 
> Sounds like "active window", but I use a grading program that just has
> one taskbar entry. I want a quick and easy way to know which class is
> active by taking the class name in the window caption and changing the
> color of the
> button.
> 
> I've tried starting with the sample script from Alexander Cicovic's
> tutorial (Intermediate Scripts>"Program Monitor") as follows.
> 
> If (activewindow "*Fr1.gbk*") Do
>    Format Item item 1 list "Button Bar" colorback 3014445
> Else
>    Format Item item 1 list "Button Bar" colorback 0
> EndIf
> 
> If (activewindow "Fr2.gbk") Do
>    Format Item item 2 list "Button Bar" colorback 3014445
> Else
>   Format Item item 2 list "Button Bar" colorback 0
> EndIf
> 
> I changed "anywindow" to "activewindow" and the window names to my
> gradebook names from the window captions. I put each of the lines
> above (ten entries) into a left button command line of the Monitor
> command list. I created a new bar called "Button Bar" with entries
> "Fr1" and "Fr2" with the commands to switch windows. Then I made a
> button on my program launcher bar that did *Script>Run>Monitor.
> 
> It didn't affect my "Button Bar". Am I way off or just merely
> ignorant? Any help or a push in the right direction would be
> appreciated.

Have you pressed the button of "*Script Run Monitor"?
You have to do it manually in this case.

If you want to do it automatically, use "Monitor" command
list after checking "Run monitor list each second..." in
"pproconf.exe | Command Lists | Setup | Special Lists".
Then create a command list named "Monitor" and set the left
button command to ".your_script_name".

Sean



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
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