bastike Posted October 28, 2006 Posted October 28, 2006 hello all i am back with new thing i want to learn only dont know anything about it so please i ask kindly if some on would like to help me the next here is the problem i want to make an bot if it is posible for my little brother for his pokemon game i want to make it only to do this 2 commands --> & <-- because if u put pokemon ad an lady or man they train then for every footstep u make so i u put an pokemon there and go walk then he train it some how how to make that in an autoit code i already made an little start only i think i am wrong here is it #include <GUIConstants.au3> GUIcreate("pokemon bot",350,350) GUISetState (@SW_SHOW) GUICtrlCreateLabel("pokemon bot",50,50,150,150) $button_1 = GUICtrlCreateButton("start", 125,250,30,30) While 1 $msg = GUIGetMsg() If $msg = $button_1 Then Send({RIGHT}) And Send({left}) WEnd please help me with this
AzKay Posted October 28, 2006 Posted October 28, 2006 While 1 $msg = GUIGetMsg() Select Case $msg = $button_1 Send("{RIGHT}") Send("{LEFT}") EndSelect WEnd # MY LOVE FOR YOU... IS LIKE A TRUCK- #
bastike Posted October 28, 2006 Author Posted October 28, 2006 oken thanks that whas good now i want it to just repeat the same action do i need to use return ? and how does work return ?
PaulIA Posted October 28, 2006 Posted October 28, 2006 and how does work return ?Have you tried looking in the help file? Auto3Lib: A library of over 1200 functions for AutoIt
cppman Posted October 28, 2006 Posted October 28, 2006 (edited) return...... it returns a specified value. MsgBox(0, "", _MyReturn()) Func _MyReturn() Return "Hello" EndFunc if you want to repeat something.. look at loops. while/wend do/until for/next Edited October 28, 2006 by CHRIS95219 Miva OS Project
bastike Posted October 28, 2006 Author Posted October 28, 2006 so if u say this must be good right? #include <GUIConstants.au3> GUIcreate("pokemon bot",350,350) GUISetState (@SW_SHOW) GUICtrlCreateLabel("pokemon bot",50,50,150,150) $button_1 = GUICtrlCreateButton("start", 125,250,30,30) While 1 $msg = GUIGetMsg() Select Case $msg = $button_1 Send("{RIGHT}") Send("{RIGHT}") Send("{LEFT}") Send("{LEFT}") return while 1 EndSelect WEnd
bastike Posted October 28, 2006 Author Posted October 28, 2006 can some on tell me how this work because i dont understand much of it
bastike Posted October 28, 2006 Author Posted October 28, 2006 please anyone i begg u all please i need the little help
AzKay Posted October 30, 2006 Posted October 30, 2006 Would probly be better for you to use a hotkey than a gui. HotKeySet("{F2}", "_Bot") HotKeySet("{F3}", "_Beef") While 1 Sleep(100) WEnd Func _Bot() $Beef = 0 Do Send("{RIGHT}") Send("{LEFT}") Until $Beef = 1 EndFunc Func _Beef() $Beef = 1 EndFunc F2 starts, F3 stops. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
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