Josbe Posted November 11, 2004 Posted November 11, 2004 I would like to know: When GUICtrlSetOnEvent() (GUIOnEventMode= 1) is used, remarkably increases the CPU usage? Why? AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Valik Posted November 11, 2004 Posted November 11, 2004 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...
Josbe Posted November 11, 2004 Author Posted November 11, 2004 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. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
jpm Posted November 12, 2004 Posted November 12, 2004 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
this-is-me Posted November 12, 2004 Posted November 12, 2004 Func GuiWaitClose($hWnd) While WinExists($hWnd) Sleep(25) Wend EndFunc Who else would I be?
jpm Posted November 13, 2004 Posted November 13, 2004 Func GuiWaitClose($hWnd) While WinExists($hWnd) Sleep(25) Wend EndFunc<{POST_SNAPBACK}>Thanks I would prefer to have it as a function
Angel Posted November 13, 2004 Posted November 13, 2004 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now