Jump to content
Sign in to follow this  
erezlevi

general question can't find a clear answer.

Recommended Posts

erezlevi

hi,

I wrote down a script using the "while 1" statement for endless loop, so the script process will run allways in the background. I used the windows Task Manager processes status to see how much mem the scripts takes and from the CPU precent.

the computer the script should ran on, has many ActiveExe installed also, and other processes running in the background.

should I trust the Windows task manager info about the consumption from AutoIt script usage, did anyone had expirance with While statement causing recrusion?

the windows task manager shows 7140 under my autoit process where Mem usage is. and CPU is allways 00 there in the first loop, all other loops shows the 8404 and it stays that way for 10 loops, I didn't check anymore because it became stable....

Share this post


Link to post
Share on other sites
PsaltyDS

hi,

I wrote down a script using the "while 1" statement for endless loop, so the script process will run allways in the background. I used the windows Task Manager processes status to see how much mem the scripts takes and from the CPU precent.

the computer the script should ran on, has many ActiveExe installed also, and other processes running in the background.

should I trust the Windows task manager info about the consumption from AutoIt script usage, did anyone had expirance with While statement causing recrusion?

the windows task manager shows 7140 under my autoit process where Mem usage is. and CPU is allways 00 there in the first loop, all other loops shows the 8404 and it stays that way for 10 loops, I didn't check anymore because it became stable....

Uhmm... was there an AutoIt question in there?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
erezlevi

Uhmm... was there an AutoIt question in there?

:)

well, I was asking if anyone used "while 1" for endless loop, and can share expiriance with me if it was OK ? or do you have another way of doing endless loops.

Share this post


Link to post
Share on other sites
PsaltyDS

well, I was asking if anyone used "while 1" for endless loop, and can share expiriance with me if it was OK ? or do you have another way of doing endless loops.

Got it. While/WEnd or Do/Until should be able to loop indefinitely without problems. Now the code you are running inside those loops could be an issue, but it won't come from the loops themselves.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×