Jump to content
Sign in to follow this  
bastike

just a bot

Recommended Posts

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 :whistle:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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  

×
×
  • Create New...