Sign in to follow this  
Followers 0
bastike

just a bot

10 posts in this topic

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



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 ?

Share this post


Link to post
Share on other sites

and how does work return ?

Have you tried looking in the help file?

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

yes only i dont understand about it

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by CHRIS95219

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

can some on tell me how this work because i dont understand much of it :whistle:

Share this post


Link to post
Share on other sites

please anyone i begg u all please i need the little help :whistle:

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  
Followers 0