Hello,
I'm having some problems with a script I'm playing with. Itsn't any way to simulate an Script.Wait or something like this? I don't want the whole application to be frozen during the waiting time. Just my script. I'm trying to find a way to not use OnTimer to do some animations.
Here's my script:
Page OnShow:
OnClick (any button):Code:wndSize = Window.GetSize(Application.GetWndHandle()); --Custom Variables --Page Margin: marginTop = 10; marginBottom = 10; marginRight = 10; marginLeft = 10;
BTW, I have a problem in the last script. If I only add a value to the X axis, that's ok. It stops at the page limits. But if I add a value to the Y, it never stops and I'm forced to use CTRL+Alt+Del. Do you know what is the problem?Code:thisSize = Button.GetSize(this) thisPos = Button.GetPos(this); Xpos = wndSize.Width - thisSize.Width - marginRight; Ypos = wndSize.Height - thisSize.Height - marginTop; while thisPos.X < Xpos do if thisPos.Y < Ypos then thisPos = Button.GetPos(this); Button.SetPos(this, thisPos.X+1, thisPos.Y+1); end end
Thanks!
FoxLeader
Note: I attached the apz.


