Jump to content

speed issues


Recommended Posts

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
Link to comment
Share on other sites

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:

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