Jump to content

Help with sending a message multiple times


do4y4
 Share

Go to solution Solved by ripdad,

Recommended Posts

I want to use the send command to send something more than once but without having to type it out like that. LIke for example if i wanted to send "test" 4 times i dont want to type it out 4 times like below.

Send("test test test test")

I want to change that to something like:

Send("test *4")

And the *4 means that it will type out "test test test test " 

Link to comment
Share on other sites

8 minutes ago, ripdad said:

Your answer is in the helpfile.

Click here

 

Hello, thank you but I did look at the helpfile before I posted and again after you sent your reply, but I only found a way to send a single key for than once as in:

Send("{t 4}")

 but not a whole word or phrase. Could you please quote the helpfile where it says how to do it? Thanks.

Link to comment
Share on other sites

  • Solution

Hmm... doesn't seem to be a way with just "send".

How about:

Sleep(3000)

For $i = 1 To 4
   Send("test ")
   Sleep(10)
Next

; - or in a function -

Func _SendText($text = "test", $n = 4)

    For $i = 1 To $n
        Send($text)
        Sleep(10)
    Next

EndFunc

 

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

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