Jump to content

Send & Sleep at the same time


Trojan55
 Share

Go to solution Solved by michaelslamet,

Recommended Posts

Hello guys I'm bored of typing a text then new line sleep... etc...

So i decided to make a function of SendSleep(text,sleepms)

Here is the code :

Func SendSleep($txt,$time)
    $chr = StringLen($txt)
    Dim $lol[$chr]
    Dim $bitz = 0
    Do
    $bitz = $bitz + 1
    Send($lol[$bitz])
    Sleep($time)
Until $bitz = $chr
EndFunc
SendSleep("Hello",100)

Error is :

C:UsersSyhsherDocumentsjik.au3 (7) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
Send($lol[$bitz])
Send(^ ERROR

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