Jump to content

Send Function?


Recommended Posts

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?

Link to comment
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

Link to comment
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

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