Jump to content
Sign in to follow this  
Voz

Send Function?

Recommended Posts

Voz

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
tlokz

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
Voz

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
tlokz

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.