ioliver 0 Posted March 5, 2004 While 1 Wend This loop puts my CPU usage at 99 even if there is noting in the loop. Any idea? "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Share this post Link to post Share on other sites
Jos 2,165 Posted March 5, 2004 that is correct... It basically does what you ask it to do.... just add a Sleep(100) to have it pause a little every loop.. 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. Share this post Link to post Share on other sites
scriptkitty 1 Posted March 5, 2004 99% computer usage: While 1 Wend 00.01% computer usage: While 1 sleep(1); virtually no wait time. Wend AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites
ioliver 0 Posted March 5, 2004 Thank you very much... That sleep(1) will save me lots of processor time in at least 2 of my scripts. Thanks again "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Share this post Link to post Share on other sites