Jump to content
Sign in to follow this  
Trojan55

Send & Sleep at the same time

Recommended Posts

Trojan55

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

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  

×