Shanerox Posted February 4, 2006 Share Posted February 4, 2006 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 More sharing options...
Somerset Posted February 4, 2006 Share Posted February 4, 2006 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 timesTo hold a key down (generally only useful for games) Send("{a down}") ;Holds the A key down Send("{a up}") ;Releases the A keyTo 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 ScrollLockIf 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 More sharing options...
Shanerox Posted February 4, 2006 Author Share Posted February 4, 2006 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 More sharing options...
Somerset Posted February 4, 2006 Share Posted February 4, 2006 sry, my help file is screwy, but when i use Send("{UP}") or any direction it dont workto hold it down it would be Send("{up down}") Send("{down down}") Send("{left down}") Send("{right down}") understand? Link to comment Share on other sites More sharing options...
Shanerox Posted February 4, 2006 Author Share Posted February 4, 2006 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 More sharing options...
Moderators SmOke_N Posted February 4, 2006 Moderators Share Posted February 4, 2006 ok, but now im trying Send("{left 3}") and Send("{left"), not holding them down, and it aint workinSend("{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 More sharing options...
Shanerox Posted February 4, 2006 Author Share Posted February 4, 2006 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] Link to comment Share on other sites More sharing options...
Valuater Posted February 4, 2006 Share Posted February 4, 2006 whats the name of the game? program or internet? 8) Link to comment Share on other sites More sharing options...
Shanerox Posted February 4, 2006 Author Share Posted February 4, 2006 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] Link to comment Share on other sites More sharing options...
Valuater Posted February 4, 2006 Share Posted February 4, 2006 well...you should check out my Welcome to AutoIt 1-2-3you can push "Show Me - Search Help" and type in "Send" you will see everythinga great educational toolhttp://www.autoitscript.com/forum/index.php?showtopic=21048#8) Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 5, 2006 Share Posted February 5, 2006 You did have the game window selected yes? Send posts keys posts messages to the active window. Link to comment Share on other sites More sharing options...
Shanerox Posted February 6, 2006 Author Share Posted February 6, 2006 ????????????? 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] Link to comment Share on other sites More sharing options...
Oxin8 Posted February 6, 2006 Share Posted February 6, 2006 Maybe post the script... If the mentioning the game will really get you banned, then just change the strings for window activations and such. ~My Scripts~ *********_XInput UDF for Xbox 360 ControllerSprayPaint_MouseMovePlus Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 6, 2006 Moderators Share Posted February 6, 2006 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! 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 More sharing options...
Nuffilein805 Posted February 6, 2006 Share Posted February 6, 2006 well, have you ever tried the autoitwindowinfo? maybe it shows you some controls you can use if you wanna use send than you should do send({up down}) sleep (100) send({up up}) don't know if this works for sure, but its worth trying my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now