AlienStar Posted December 5, 2009 Share Posted December 5, 2009 (edited) hello everybody I use this loop While <expression> statements ... WEnd but it takes about 50 % from processor ( 2.40 GHz core 2 due ) if doesn't do any thing I mean : I just use While 1 WEnd without any function and also takes about 50 % from processor how to make it takes less than this ??? coz the monitor of internet download manager takes about 00 from processor I wanna like this please help me Edited December 12, 2009 by AlienStar Link to comment Share on other sites More sharing options...
JohnOne Posted December 5, 2009 Share Posted December 5, 2009 I dont know why anyone would want a while loop without anything in it. While 1 Sleep(50) WEnd AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AlienStar Posted December 5, 2009 Author Share Posted December 5, 2009 (edited) I dont know why anyone would want a while loop without anything in it.While 1 Sleep(50)WEndI don't mean that I mean even if it doesn't do any thing (just running) it take 50 % from processorbut thanks so much it works well Edited December 5, 2009 by AlienStar Link to comment Share on other sites More sharing options...
Marlo Posted December 5, 2009 Share Posted December 5, 2009 Because you have created an Empty loop which has no idle time so the processor is running it all the time. thus takeing alot of your usage. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
Mobius Posted December 5, 2009 Share Posted December 5, 2009 (edited) @AlienStara while command without an expression should cause the interpreter to display an error, and not proceed with execution.Because 'while <nothing>' will never equate to a positive result.If for some outta space reason your version does not comply with this (no sane reason why not) then simply don't do it. Edited December 5, 2009 by Mobius Link to comment Share on other sites More sharing options...
martin Posted December 5, 2009 Share Posted December 5, 2009 @AlienStara while command without an expression should cause the interpreter to display an error, and not proceed with execution.Because 'while <nothing>' will never equate to a positive result.If for some outta space reason your version does not comply with this (no sane reason why not) then simply don't do it.Well I suppose it was inevitable that someone with a name like Mobius was going to appear in a thread about loops. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Mobius Posted December 5, 2009 Share Posted December 5, 2009 Well I suppose it was inevitable that someone with a name like Mobius was going to appear in a thread about loops.What can I say martin, *shrugs* had my name on it. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 6, 2009 Share Posted December 6, 2009 Well I suppose it was inevitable that someone with a name like Mobius was going to appear in a thread about loops.I don't get it?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 6, 2009 Share Posted December 6, 2009 mobius loop - Google Search - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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