Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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.

Edited by Mobius

wtfpl-badge-1.png

Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...