Jump to content

Help sending keys


 Share

Recommended Posts

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]

Link to comment
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}")

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

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

Link to comment
Share on other sites

  • Moderators

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

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

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.

Link to comment
Share on other sites

  • Moderators

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:

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.

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