Sign in to follow this  
Followers 0
Shanerox

Help sending keys

15 posts in this topic

ok, im trying to make a bot type thing for a game. All i want it to do is move me(with arrow keys), hold down shift, and press control. How do I do that. Could someone give me the cod plz....thx


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites



have you acctually read anything to deal with send in the help file?

Single keys can also be repeated, e.g.

Send("{DEL 4}") ;Presses the DEL key 4 times

Send("{S 30}") ;Sends 30 'S' characters

Send("+{TAB 4}) ;Presses SHIFT+TAB 4 times

To hold a key down (generally only useful for games)

Send("{a down}") ;Holds the A key down

Send("{a up}") ;Releases the A key

To set the state of the capslock, numlock and scrolllock keys

Send("{NumLock on}") ;Turns the NumLock key on

Send("{CapsLock off}") ;Turns the CapsLock key off

Send("{ScrollLock toggle}") ;Toggles the state of ScrollLock

If you with to use a variable for the count, try

$n = 4

Send("+{TAB " & $n & "}")

If you wish to send the ASCII value A four times, then try

$x = Chr(65)

Send("{" & $x & " 4}")


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

sry, my help file is screwy, but when i use Send("{UP}") or any direction it dont work


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites

sry, my help file is screwy, but when i use Send("{UP}") or any direction it dont work

to hold it down it would be

Send("{up down}")
Send("{down down}")
Send("{left down}")
Send("{right down}")

understand?


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

ok, but now im trying Send("{left 3}") and Send("{left"), not holding them down, and it aint workin


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites

ok, but now im trying Send("{left 3}") and Send("{left"), not holding them down, and it aint workin

Send("{left}") not Send("{left")

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

i kno that, that was a typo


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites

whats the name of the game?

program or internet?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Its online, i cant say the name or i might get banned


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites

You did have the game window selected yes? Send posts keys posts messages to the active window.

Share this post


Link to post
Share on other sites

????????????? Yea, i have the window selected


[font="Fixedsys"][center]Walking the Long Road[/center][/font][left][font="Impact"]Nickelback[/font][/left][center][/center][right][font="Impact"]Nickelback[/font][/right]

Share this post


Link to post
Share on other sites

Maybe post the script... If the mentioning the game will really get you banned, then just change the strings for window activations and such.

Nah... that's too easy... I'd rather chase the tail! :lmao:


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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