--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
>
> > bar.show("TestBar")
> > Window.Position("center", win.handle("TestBar,&,c=Powerprotoolbar"))
> >
> 
> Sheri,
> 
> it does work but I also get this error:
> 
> ---------------------------
> PowerPro
> ---------------------------
> Cannot find window to change or to send keys to
> 2818430
> ---------------------------
> OK   
> ---------------------------
>

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.

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

Regards,
Sheri

Reply via email to