> Hi Bruce,
> 
> I have modified your hint an wrote a script with win.rolled:
> 
> If(win.rolled(win.handle("under")) == 1)do
> (win.ontop(win.handle("under"),1))Else
> (win.ontop(win.handle("under"),0))
> Endif


PPro should not crash because of the errors, but the syntax above is not quite 
right.

If (win.rolled(win.handle("under")) == 1)do
win.ontop(win.handle("under"),1)
Else
win.ontop(win.handle("under"),0)
Endif

BTW, for most (but no quite all -- see help!) of the win functions, you don't 
need to explicit present the handle, you can just using the window matching 
function:

If (win.rolled("under"))do
win.ontop("under",1)
Else
win.ontop("under",0)
Endif

And you can actually omit the test, since win.rolled returns 0 or 1:

win.ontop("under", win.rolled("under"))  // should work, not tested

Reply via email to