Jump to content
Sign in to follow this  
IKilledBambi

speed issues

Recommended Posts

IKilledBambi

Is there any way to make autoit faster?

While 1
Send("test")
wend

I couldn't find a way is it possible?

Edited by IKilledBambi

Share this post


Link to post
Share on other sites
LarryDalooza

Opt("SendKeyDelay",1)

or... if you feel frisky...

Opt("SendKeyDelay",0)

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites
TouchOdeath

Opt("SendKeyDelay", 0)

Opt("SendKeyDownDelay", 0)

I user zero all the time. You just have to use handles alot but its the best way.

Share this post


Link to post
Share on other sites
IKilledBambi

This is my test script, is there anything I'm missing? It seems to work.

HotKeySet("{f5}", "Start")
HotKeySet("{f6}", "Pause")

While 1
WEnd

Func Start()
    Opt("SendKeyDelay", 1)
    $i = 0
    Do
        Send($i & "{enter}")
        $i = $i + 1
    Until $i = 10000
EndFunc  ;==>Start

Func Pause()
    While 1
        Sleep(1000)
    WEnd
EndFunc  ;==>Pause

Share this post


Link to post
Share on other sites
rasim

This is my test script, is there anything I'm missing? It seems to work.

Little correction:

Opt("SendKeyDelay", 1)

HotKeySet("{f5}", "Start")
HotKeySet("{f6}", "Pause")

Global $i = 0

While 1
    Sleep(10)
WEnd

Func Start()
    Do
        Send($i & "{enter}")
        $i = $i + 1
    Until $i = 10000
    $i = 0
EndFunc  ;==>Start

Func Pause()
    While 1
        Sleep(100)
    WEnd
EndFunc  ;==>Pause

:mellow:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.