Sign in to follow this  
Followers 0
Josbe

GUIOnEventMode

7 posts in this topic




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...

Share this post


Link to post
Share on other sites

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

<{POST_SNAPBACK}>

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


Who else would I be?

Share this post


Link to post
Share on other sites

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

<{POST_SNAPBACK}>

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0