Jump to content

Recommended Posts

Posted

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]

Posted

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}")

Posted

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]

Posted

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?

Posted

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]

  • Moderators
Posted

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.

Posted

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]

Posted

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]

Posted

????????????? 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]

  • Moderators
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...