Dude Posted June 15, 2005 Share Posted June 15, 2005 Hi, after starting the script and waiting 1 to 2 Minutes, the CPU usage goes very high. Why?hk_favoriten.au3 Link to comment Share on other sites More sharing options...
FuryCell Posted June 15, 2005 Share Posted June 15, 2005 (edited) Hi,after starting the script and waiting 1 to 2 Minutes, the CPU usage goes very high. Why?<{POST_SNAPBACK}>Didn't test it but looked at the code. You have a big loop to poll all those check boxes. why not use a Treeview with the tvs checkboxes style instead. That should lower cpu usage. here is an example of what one would look like. (Look in the bottom right corner to see the example.)Edit: Just realized that that wasn't a loop. it is only called when the ok button is clicked. Sorry for the mistake. Edited June 16, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 15, 2005 Developers Share Posted June 15, 2005 Hi,after starting the script and waiting 1 to 2 Minutes, the CPU usage goes very high. Why?<{POST_SNAPBACK}>You are using opt("GUIOnEventMode", 1) so GUIGetMsg() fails...Replace:While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEndwith:While 1 Sleep(10) WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dude Posted June 17, 2005 Author Share Posted June 17, 2005 You are using opt("GUIOnEventMode", 1) so GUIGetMsg() fails...Replace:While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEndwith:While 1 Sleep(10) WEnd<{POST_SNAPBACK}>Thanks a lot 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