"Sheri" wrote:
> Are you saying you get that error using just the posted lines? I tried the
> above lines with a bar named TestBar and I don't get any errors.
Well, this is strange because the first time I tried your command, it worked
without errors but after that, always showed the error message.
> But, maybe you need a wait, to wait until the bar is visible, e.g.:
>
> wait.for(5000,visiblewindow("TestBar,&,c=powerprotoolbar"))
> if(visiblewindow("TestBar,&,c=powerprotoolbar"))
> window.position("center", win.handle("TestBar,&,c=powerprotoolbar"))
I tried the above command and it still showed the error message.
Then I removed the wait time value and changed visiblewindow to activewindow
It's working as expected now.
Thanks.
"brucexs" wrote:
> The window class is different if the bar has a shadow.
>
I'm not using shadow on the bar (well, I am but it's the image itself) but it's
good to know.
I ran exec.windowinfo on one that I do use shadow and saw the class name you
refer.
Thanks for that too.
here's a screenshot:
http://img211.imageshack.us/img211/2649/shutoff.jpg
I still need to make hover and press effects plus other things.
For now, the important part missing is the dim effect as I'm asking in the
other topic.
I'd also like someone to test the skin to see if it works well in several
systems before I release it.
Anyone willing to do so?