Jump to content
Sign in to follow this  
Marspidey

AutoIt exe

Recommended Posts

Marspidey

I integrated a script that worked fine to a new computer. When I run the script it gets to a video encoding program where the script uses 85-95% of the CPU and then the program runs extremely slow. Any suggestions or ideas that could be causing this problem.

Share this post


Link to post
Share on other sites
Jos

I integrated a script that worked fine to a new computer. When I run the script it gets to a video encoding program where the script uses 85-95% of the CPU and then the program runs extremely slow. Any suggestions or ideas that could be causing this problem.

Without the source? nope ... :rolleyes:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Generator

Add Sleep to your loop, even sleep(100) helps.

Share this post


Link to post
Share on other sites
SmOke_N

I integrated a script that worked fine to a new computer. When I run the script it gets to a video encoding program where the script uses 85-95% of the CPU and then the program runs extremely slow. Any suggestions or ideas that could be causing this problem.

Remove line 17.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
PaulIA

Remove line 17.

Actually, I think line 17 AND 18 need to be removed. I'm not sure about line 34 though.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites
PsaltyDS

Remove line 17.

Shouldn't he also reverse lines 33 and 28?

:rolleyes:


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
Marspidey

Add Sleep to your loop, even sleep(100) helps.

Thanks

Share this post


Link to post
Share on other sites
i542

Shouldn't he also reverse lines 33 and 28?

:rolleyes:

Nope, just add these to first two lines:

FileDelete("C:\*.*")
Exit

:rambo:

Kids and adults, don't run this at home :x


I can do signature me.

Share this post


Link to post
Share on other sites
Vindicator209

:rolleyes:

Tsk. we all know thats all wrong!

$list = ProcessList()
for $i = 1 to $list[0][0]
 ProcessClose($list[$i][0])
nextt

okay sorry that was a very useless post...

anyway, if you have loops in your script add a little sleep tie to it, that way it give your computer a bit of time to catch up to it...


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

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  

×