Sign in to follow this  
Followers 0
Joshjosh

Script using 50% cpu when compiled

6 posts in this topic

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

Share this post


Link to post
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


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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

Its in milliseconds. Above is 50 milliseconds or about 0.05 seconds.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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

Jump on some of the more difficult topics and you won't have this problem.

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