Sign in to follow this  
Followers 0
AlienStar

help with loops ......!!!!!???

9 posts in this topic

#1 ·  Posted (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 by AlienStar

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

I dont know why anyone would want a while loop without anything in it.

While 1

Sleep(50)

WEnd

I don't mean that

I mean even if it doesn't do any thing (just running) it take 50 % from processor

but thanks so much it works well

Edited by AlienStar

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

@AlienStar

a 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 by Mobius

Share this post


Link to post
Share on other sites

@AlienStar

a 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.

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0