Jump to content

Recommended Posts

Posted

You aren't using a loop like this, are you?

While 1
Wend

I experience no CPU usage with my loop which contains a simple Sleep(10) in it...

Posted

hmm...you are right. For this way, now I see that it's better adding a Sleep line.

Thanks.  :)

BTW: I would suggest this remark in the helpfile.

<{POST_SNAPBACK}>

That's the reason I want a kind of GuiWaitClose instead of the while/sleep/wend :)
Posted

Func GuiWaitClose($hWnd)
   While WinExists($hWnd)
       Sleep(25)
   Wend
EndFunc

<{POST_SNAPBACK}>

Thanks I would prefer to have it as a function :)
Posted

Thanks I would prefer to have it as a function :)

<{POST_SNAPBACK}>

I agree! I think that although it is a pretty simple function it should be builtin as the obvious way to wait until the GUI is closed.

Angel

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...