Josbe Posted November 11, 2004 Share 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 Link to comment Share on other sites More sharing options...
Valik Posted November 11, 2004 Share 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... Link to comment Share on other sites More sharing options...
Josbe Posted November 11, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
jpm Posted November 12, 2004 Share 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 Link to comment Share on other sites More sharing options...
this-is-me Posted November 12, 2004 Share Posted November 12, 2004 Func GuiWaitClose($hWnd) While WinExists($hWnd) Sleep(25) Wend EndFunc Who else would I be? Link to comment Share on other sites More sharing options...
jpm Posted November 13, 2004 Share 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 Link to comment Share on other sites More sharing options...
Angel Posted November 13, 2004 Share 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 Link to comment Share on other sites More sharing options...
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