Sign in to follow this  
Followers 0
Voz

Send Function?

4 posts in this topic

Hi, I was in the middle of making a bot when I ran into a problem:

Send("{a down}")
Sleep(2000)
Send("{a up}")

This only results in one keypress on "a", and I need "a" to be pressed down

Any suggestions? am I doing something wrong?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not sure but try

Opt("SendKeyDelay", 1000)

Send("{a down}")

Send("{a up}")

Opt("SendKeyDelay", 5)

Edited by tlokz

Share this post


Link to post
Share on other sites

I've tried

Opt("SendKeyDelay", 2000)
Send("{a down}")
Sleep(2000)
Send("{a up}")
Opt("SendKeyDelay", 5)

and

Opt("SendKeyDelay", 2000)
Send("{a down}")
Send("{a up}")
Opt("SendKeyDelay", 5)

And I still only get one "a" muttley

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I've tried

Opt("SendKeyDelay", 2000)
Send("{a down}")
Sleep(2000)
Send("{a up}")
Opt("SendKeyDelay", 5)

and

Opt("SendKeyDelay", 2000)
Send("{a down}")
Send("{a up}")
Opt("SendKeyDelay", 5)

And I still only get one "a" muttley

Hmmm....

Geuss just try a loop and you can get it to do it a certain amount of times guided by a variable

For $count = 1 To 5 Step 1
    Send("{a}")
Next
Edited by tlokz

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  
Followers 0