Jump to content

Script using 50% cpu when compiled


Recommended Posts

Hey guys,

I now I need to add a wait variable....just wasn't sure where.

Any help please?

Thanks

While 1

If Not ProcessExists("iexplore.exe") Then Run(@ProgramFilesDir &"\Internet Explorer\iexplore.exe -k C:\inetpub\ftproot\Index.htm")

MouseMove(@DesktopWidth + 100, 0, 0)

WEnd

Link to comment
Share on other sites

While 1
If Not ProcessExists("iexplore.exe") Then Run(@ProgramFilesDir &"\Internet Explorer\iexplore.exe -k C:\inetpub\ftproot\Index.htm")
MouseMove(@DesktopWidth + 100, 0, 0)
Sleep(50); <-- I added this line
WEnd

Thanks for that. The wait time, is that in seconds?

Link to comment
Share on other sites

Thanks for that. The wait time, is that in seconds?

No in milliseconds (1000 = 1 sec)

I suggest you up it to 300 millisecs.

This is annoying. in the time it takes to reply 3 people have already replied

Edited by hyperzap

ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

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