Hello! Today I will show you how to make image recognition bots as fast as possible using Python. I will cover the basics of Pyautogui, Python, win32api and by the end, you should be able to make a bot for pretty much any game.

Here are the commands to run and code to paste:

All code can be found here:

If this video helped you please consider subscribing and leaving a like, it helps a ton!

If you have any errors/suggestions please let me know!

Nguồn: https://chapelhilltownguide.com/

Xem thêm bài viết khác: https://chapelhilltownguide.com/game/

45 Comments

  • Grand Osprey
    Posted July 28, 2020 11:01 am

    Explained exactly what you needed to. Thx for this vid! Got a sub

  • Nyaanity
    Posted July 28, 2020 11:01 am

    Hey 🙂 Do you use Discord? I really need help with my script. Can't figure out a problem, not even in the internet. Maybe u can help me ^^

  • Achmed_and_friends
    Posted July 28, 2020 11:01 am

    cool vid

  • Vishwaraj Anand
    Posted July 28, 2020 11:01 am

    Hello Kian, thanks for making these videos. Its really cool to watch and to follow.
    Request: in case you are interested, please also make videos on some productivity boosting automations that you think could be useful for pc/mac.

  • neeyal pindoria
    Posted July 28, 2020 11:01 am

    How wud i do this for 3D Aim Trainer as the the POV changes so the clicker struggles to find the next target

  • EE18B002 ADUGANI VANJARI AKANKSH
    Posted July 28, 2020 11:01 am

    hey bro you are awesome, this the one i was looking for. thanks a lot

  • 24419
    Posted July 28, 2020 11:01 am

    for the image recognition, is it possible to have a transparent background, since its a png, and just search for the stick figure, completely avoiding the background issue?

  • EMN
    Posted July 28, 2020 11:01 am

    it is not working:(

  • Kyle Rance
    Posted July 28, 2020 11:01 am

    trying to figure out how to range RGB…. tried this and no joy. Any idea?

    [(r in range(287,288)) and (g in range(180,187)) and (b in range(28,34))]

  • 6rewal
    Posted July 28, 2020 11:01 am

    Is there any way to make it so the bot locks onto the window. For example you had to do the x+### y+### because of the location of the window. This way maybe you could minimize the window aswell.

  • Kguy Rampage
    Posted July 28, 2020 11:01 am

    Really good tutorial, but I still failed on the first game's script. It correctly detects the black pixel, and then moves my mouse to the black tile but it does not get clicked. I tested the click() function, and it seems to work on other parts of the game except for the black tile. There's no error messages.
    IDK what causes it, but if anyone knows PLEASE let me know. Thanks.

  • Nav Raj
    Posted July 28, 2020 11:01 am

    Hii can you help me with it ?

  • Voltedi
    Posted July 28, 2020 11:01 am

    why it dont show like how it shows to you the bot.py https://prnt.sc/tjm5uj heres a screen shot please help

  • Опасный Бондид
    Posted July 28, 2020 11:01 am

    Hello,thanks a lot for this,this is what EXACTLY I looking for,you really helped a lot,but i have question-is there any way to make this for android based phones?

  • xD
    Posted July 28, 2020 11:01 am

    Svensk BOYYYY

  • Kris K
    Posted July 28, 2020 11:01 am

    I’m here before this channel blows up

  • I'm different
    Posted July 28, 2020 11:01 am

    Dude that was an amazing video. I love how you run over how everything works, easy to understand for basic knowledge beginners. Definitely gonna sub and hope you gonna bang out some more!

  • prathmesh paware
    Posted July 28, 2020 11:01 am

    Nice video but please reduce your mic hiss hiss sound. You can use audacity for it

  • hans peter
    Posted July 28, 2020 11:01 am

    you helped me out so much

  • adjbutler
    Posted July 28, 2020 11:01 am

    DO NOT RUN PIP AS ADMIN! SECURITY PEOPLE!

  • Kingofgerman letsplays
    Posted July 28, 2020 11:01 am

    my script sometimes doesnt clicks…..

  • Scripter
    Posted July 28, 2020 11:01 am

    Great bro really you make awesome tutorials for beginners!

  • Emil Lykke Grann
    Posted July 28, 2020 11:01 am

    Wait and see bro your channel will blow up someday 🙂

  • VACTOR
    Posted July 28, 2020 11:01 am

    Hey, great video, I discovered with a few researches that PyAutoGUI has a pixelMatchesColor function that makes pixel testing easier, you might want to check that out ^^ Keep up the good work, the editing and rythm is very good in my opinion 🙂

  • Dino Wizard
    Posted July 28, 2020 11:01 am

    hey, can I somehow contact you…
    Actually, I have written a python code which actually clicks when certain color code detected in the specific region now the problem is if i consider the whole region mouse do not follow it…
    could you plz help

  • svampebob007
    Posted July 28, 2020 11:01 am

    perfect speed for explaining, it was in depth yet still easy to follow.
    I knew/know the logic of programing an image and keyboard/mouse script, but I'm learning python.
    What I really learned was
    If (x range(z,y)):
    That would have been handy to implement in a lot of other scripts that I've done!, and this is why I really want to learn python some of the "logic" implementation seems easier to the eye/mind to implement.
    While some other language can do more low level functions, they tend to be really messy and honestly if I wanted to mess with low level stuff I'd rather stick to assembly 😛
    I'm an amateur MCU programmer, I love circuit design, but programing in higher level languages has always annoyed me because I have to comply to some random programmers logic of how he wants stuff to be done..
    Thanks for that tutorial 🙂

  • Krishna chaudhary
    Posted July 28, 2020 11:01 am

    Hey, can you please help. When the speed of piano tile increases my cursor starts missing the black blocks. Any solutions

  • Sophie Lee
    Posted July 28, 2020 11:01 am

    how to do this with mac?

  • ArienthiL.-
    Posted July 28, 2020 11:01 am

    Great tutorial, I would like to know if it is possible for the mouse to click when it passes over a target instead of being redirected to the target:
    Thank you.

  • Lucas Monteils
    Posted July 28, 2020 11:01 am

    what would you do ifyoui want to detect an image which can change size (without looking for pre defined size imgs)?

  • roni
    Posted July 28, 2020 11:01 am

    It was great but a bit too fast for beginers thank you 🙂 👍🏼👍🏼

  • Techineer
    Posted July 28, 2020 11:01 am

    This was just purely amazing! This was pretty beginner friendly, but I think you could explain a bit slower. Though all in all, this was really good! You have one more sub.

  • Lil_ZcrazyG
    Posted July 28, 2020 11:01 am

    How do you not have more subs, I genuinely thought I stumbled onto an at LEAST 2k subbed channel, this is amazing.

  • ben10 Tatva
    Posted July 28, 2020 11:01 am

    i am getting a thing that always when i start the program then open piano tile it automaticly i lose.Please help me 🙁

  • bini esh
    Posted July 28, 2020 11:01 am

    thank youuuuuuuuuuu! the clearest of all tutorials!

  • Fiszmack
    Posted July 28, 2020 11:01 am

    If anyone gets this error while executing: "pip install pyautogui"
    Preparing wheel metadata … error
    ERROR: Command errored out with exit status 1:
    I got this error fixed by executing "pip install wheel" first.
    Apparently you have to discover wheel first in order to advance 😀

  • Jhon Smith
    Posted July 28, 2020 11:01 am

    Thank you 👍😃

  • Eduardo Cook-Visinheski
    Posted July 28, 2020 11:01 am

    Man thanks sm i was looking how to do this but i couldn't find any tutorials for the specific thing i wanted to do but i came across your video accidentally and its was exactly what i was looking for Thanks a lot!!!! 🙂

  • Amar Kelotra
    Posted July 28, 2020 11:01 am

    Can we increase the click speed

  • Burak Korkmaz
    Posted July 28, 2020 11:01 am

    Well done mate. You explained everything. Thank you for video. I really enjoyed it. You got a follower.

  • yeetlukas
    Posted July 28, 2020 11:01 am

    dude your editing isn't even bad, it's actually pretty good if you compare it to other tutorials like these :D, keep it up

  • Biscuits And Gravy
    Posted July 28, 2020 11:01 am

    the aimbooster shoots at the grid help

  • i0o
    Posted July 28, 2020 11:01 am

    Great video,right down to buisness just how it should be.Hope your channel grows.Would love to see more of your videos.

  • CatGuy
    Posted July 28, 2020 11:01 am

    When i try to run
    import pyautogui
    it says import pyautogui

    ModuleNotFoundError: No module named 'pyautogui'
    but i installed it in cmd

  • Saw 8888
    Posted July 28, 2020 11:01 am

    In cmd when i write the pip commands it says file not found

Leave a comment