do4y4 Posted October 21, 2021 Share Posted October 21, 2021 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 More sharing options...
ripdad Posted October 21, 2021 Share Posted October 21, 2021 Your answer is in the helpfile. Click here "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 More sharing options...
do4y4 Posted October 21, 2021 Author Share Posted October 21, 2021 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 More sharing options...
Solution ripdad Posted October 21, 2021 Solution Share Posted October 21, 2021 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 do4y4 1 "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 More sharing options...
do4y4 Posted October 21, 2021 Author Share Posted October 21, 2021 Thanks for the code! Link to comment Share on other sites More sharing options...
ripdad Posted October 21, 2021 Share Posted October 21, 2021 No problem! do4y4 1 "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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now