PyAutoGUI Video Game Bot Tutorial 1/4: Get Started with a Great Beginner AI Project!

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 127

  • @koffipappa4672
    @koffipappa4672 4 года назад +78

    in my opinion this video is so underrated

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +3

      Wow thanks!

    • @airbus5717
      @airbus5717 4 года назад +1

      i do agree
      He should get 100 million views

    • @morganmulholland6654
      @morganmulholland6654 4 года назад

      Agreed, I’ve recently been going through a lot of his videos recently and the production value and presentation is amazing across the board

    • @roshanramsa794
      @roshanramsa794 3 года назад

      Couldn't agree more!

  • @mrgrimm25
    @mrgrimm25 4 года назад +15

    I'm convinced this is just an elaborate ploy to get people to play earth and beyond

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      Haha, it's a good game!

    • @dogspace2776
      @dogspace2776 7 месяцев назад

      @@LearnCodeByGaming hey i was wondering if you could help me I was trying to start up the game and it said I didn't have the right version. i have version 1.9.9 but it says I need version 2.45

  • @enescingil1928
    @enescingil1928 4 года назад +28

    Dude you are an hidden gem! Thanks for these amazing lessons

  • @conlino
    @conlino 2 года назад +2

    These tutorials are on point and much more educational than my professors’ copy paste lessons

  • @johannes-euquerofalaralema4374
    @johannes-euquerofalaralema4374 3 года назад +2

    Here I am again! hahaha!
    Keep on going, please! I have watched many similar videos on other (huge!!) channels, and nobody(!) comes even close to you! Everybody who wants to learn this stuff, will sooner or later end up here!

  • @Charvin
    @Charvin 4 года назад +8

    I'm so glad that i found these series, So excited to learn pyautogui and put them to good use.
    Stay safe, wash your hands. I will be following through and joining on your journeys on the channel from here on. Thank you. 😊

    • @partycrashers22
      @partycrashers22 3 года назад

      Moron that annoys people and ruins the game. Bots everywhere

  • @Fkreisler
    @Fkreisler 4 года назад +5

    Thank you so much for this my brother, you got me started into pyautogui, I don't know what I would do without this way to motivate me (through gaming)!

  • @onur-s1y
    @onur-s1y Месяц назад

    awesome work.Your recording theory was a fix to my bots.Every gpu and its rams were responding to different times.Nice job.

  • @andywang8718
    @andywang8718 3 года назад

    He's so coherent and concise with this words. watched quite a few online tutorial. There are a lot of people with repeated phrases of "like" "basically" "um" etc....

    • @Sweze
      @Sweze 3 года назад

      Hes not experienced but he will be able to form his own personality soon

  • @Vivezoz
    @Vivezoz 4 месяца назад

    Your series on the osrs woodcutter project, and then opencv was just amazing
    If it werent for them videos, i never would have learnt javascript or python, and because of this i was able to choose a capstone project on designing a weakly supervised semantic segmentation model for camera trap and wild life data. I constructed the layered model in python, which i feed with masks i generate from pointlabel programs that include SAM, the purpose is to automatically categorize wildlife images into classes such as ground, trees, animals, sky etc..

  • @allgasnobreaks864
    @allgasnobreaks864 Месяц назад

    Thank you so much for sharing your knowledge. Greatly appreciated this entire series. Thanks again Ben!

  • @Kaleohart
    @Kaleohart 4 года назад +1

    Such an underrated channel, glad I found it!

  • @zombieploios
    @zombieploios 3 года назад

    You deserve so much more credit.....I wish youtube algorithm would notice you easier,in time I m sure that will happen...Thank you for your amazing work and service!!!!!!!

  • @tomasgumauskas4654
    @tomasgumauskas4654 4 года назад +4

    Love it man, you are doing a great job

  • @MuhammadKhalid-cv4mu
    @MuhammadKhalid-cv4mu 4 года назад

    I've found your channel 3 days ago and I've been watching your videos I find them really insightful! Thank you!

  • @feitoza.system
    @feitoza.system 4 года назад +4

    That taught a lot
    Thanks for the tutorial S2

  • @Arcyy1
    @Arcyy1 4 года назад +1

    your content is 10/10 im getting better because of you!

  • @corriedotdev
    @corriedotdev 2 года назад

    glad i found this channel, likeminded and i noticed the capra in the back as well in another video. great content!

  • @WvyyFPS
    @WvyyFPS 3 года назад

    Love your channel Ben! I have learned so much from you over the last year, thank you!

  • @mhmdBdrzz1337
    @mhmdBdrzz1337 3 месяца назад

    Your tutorial really helped me, thank you. Greetings from Indonesia❤

  • @rakeshmulik1658
    @rakeshmulik1658 4 года назад +3

    Absolutely gem. U are cool bro. Thanks.

  • @hetal.priyadarshi
    @hetal.priyadarshi 4 года назад +1

    Awesome Video and Channel.

  • @bluntdocto2571
    @bluntdocto2571 3 года назад

    WOW brought back memories, I was an Earth and Beyond Beta tester o.0 RIP Westwood Studios

  • @ronaldoapelyido5323
    @ronaldoapelyido5323 4 года назад +10

    Thank you for uploading this video i am learning a lot from you.

  • @d3r1n
    @d3r1n 4 года назад +7

    [Everyone Liked That]

  • @yassskippedclass7737
    @yassskippedclass7737 2 года назад

    Everyday I wake up praying to god Ben comes back to this channel

  • @jhonsmith8308
    @jhonsmith8308 4 года назад +2

    Thanks 👍

  • @CaliXto3301
    @CaliXto3301 2 года назад

    bruh i just found these series keep it up

  • @nosnid3official
    @nosnid3official 4 года назад +2

    Thank you for the tutorials, they are very well made. I will subscribe and hope that you make more tutorials.

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад

      Thank you! I will definitely be making more tutorials.

  • @Cod3rMax
    @Cod3rMax Год назад

    Even if i'm not learning python i'm here to apply this on c# lol thank you men

  • @ben_jamin01
    @ben_jamin01 9 месяцев назад

    I like your name Ben and I respect your craft you helped me a lot 👍

  • @saido3278
    @saido3278 4 года назад +2

    you are the best!

  • @supersunardi3823
    @supersunardi3823 4 года назад +2

    Woah thx

  • @ged9925
    @ged9925 8 месяцев назад

    Awesome, thank you for your help!

  • @JunkardCOD
    @JunkardCOD 2 года назад

    I've learned so much from these videos.

  • @CogNewsnow
    @CogNewsnow 4 года назад +1

    LOVE IT
    Hi from Brazil

  • @mdaaweshpatanwala8542
    @mdaaweshpatanwala8542 4 года назад +3

    your content is just awsome, i am doing this as my project!!.....Thanks for this tutorial

  • @aasheesh6001
    @aasheesh6001 9 месяцев назад

    Such a great video.

  • @thewaytohell
    @thewaytohell 4 года назад +2

    Really nice!

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад

      Thank you!

    • @thewaytohell
      @thewaytohell 4 года назад +1

      May you answer me a question real quick? I am new to python.
      I tried out 2 games and all those pyautogui.moveTo works great!
      My problem now with my game: after a random time ingame there are 3 types of loading screens. They are always the same look, and each of them (after loading) starts at a fixed location where my script would keep running, but since i can not "time" that loading screen, my script is out of time. (these loading screens take 20seconds up to 3 min)
      I could add a huuuge delay (like 6 min) , but i wonder if and how i could work around that. Is there a way to: let the script recognise each of these loading screens, pause, recognise new starting location and continue with fixed timers and position?
      Sorry for the long question and my english!

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      ​@@thewaytohell Sure! Here's what I would do. I'd make a function like waitForLoadingScreen(), and in that function I'd use pyautogui.locateOnScreen() to search for a small piece of that loading screen image. As long as it can find that image, you know the loading screen is still on. So you can search for that image in a loop, with a short pause between each lookup, and as soon as it no longer finds that image you can return out of the the function. Here's what that code might look like:
      def waitForLoadingScreen():
      needle_img_path = "..."
      while(pyautogui.locateOnScreen(needle_img_path)):
      sleep(2.00)
      If you haven't checked out video 4 in this series yet, in there I go into more detail about how to use pyautogui.locateOnScreen().
      And if you're using the very latest version of PyAutoGUI, it looks like locateOnScreen() now raises an ImageNotFoundException when it can't find the image (before it just returned None), so you'll want a try/except to catch that (and you can just return out of the function when you get that exception). Good luck!

  • @SwayGamer
    @SwayGamer 3 года назад

    Thank you for your contributions

  • @vromel4331
    @vromel4331 3 года назад

    Great work guys !

  • @Unilitre
    @Unilitre 4 года назад +4

    Damn, Your eye looks pretty cool.
    Are they different colors too?

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +8

      Thanks, yeah they look pretty cool! They were the same when I was a kid, but my retina detached and I went blind in my left eye, so now it's all covered in cataracts. Still moves around pretty good though.

    • @realreview7932
      @realreview7932 4 года назад +5

      @@LearnCodeByGaming you got some nerves of steel going on camera like this not sure Id be able to do this keep up the good work

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +5

      @@realreview7932 Thanks! I was nervous about it but everyone's been really kind.

    • @wh0d1s-l
      @wh0d1s-l 4 года назад +3

      @@LearnCodeByGaming really thank you for this series and overall your channel I have been looking for one like this for months and just came accross yours definitely subbing......
      and subbed

    • @Molly-ss4fw
      @Molly-ss4fw 4 года назад +3

      @@LearnCodeByGaming Have you though about replacing it with something cool like a 40x zoom camera or a bomb you can activate by blinking 10 times really fast

  • @nowak1994
    @nowak1994 3 года назад

    love your videos thanks !

  • @vlexxx
    @vlexxx 2 года назад

    Thank you very much for this video, really authentic and helpful.
    It would be nice, if you could do also a tutorial for third-person games like (GTA5?) :)

  • @maciejgronczynski9441
    @maciejgronczynski9441 4 года назад +2

    I've asked this question on stackoverflow but no one could answer to that....
    Hi just quick question is there any library in python similar to pyautogui where I can create a program which will initialize given window and execute commands(i.e click, hotkeys etc.) only in this particular window?
    For example I want to create a simple program that will click for me and use hotkeys in game, but at the same time I want to use computer without stopping the program. As far I'm concerned using pyautogui I can create programs like that but I cant click, or change windows while program is running because it will crash program.

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад

      I don't know of any library that does that, and you're unlikely to find one because Windows is designed to have just one mouse pointer, and to send keyboard inputs only to the active window. I've talked with some of my other viewers about this problem and we think using Windows virtual machines is the best approach to solving this. I haven't had a chance to work on this project yet to figure out the details, but it is near the top of my list for future content.

    • @maciejgronczynski9441
      @maciejgronczynski9441 4 года назад

      @@LearnCodeByGaming Thanks for quick respond. So who other game bots works that way? shame to say but I used few bots to play Tibia and each one of them been able to do multi tasking things while I could easly use computer without any problem while bot was running

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад

      @@maciejgronczynski9441 They likely use different botting techniques that read and write directly to memory.

  • @scarasect5161
    @scarasect5161 4 года назад +4

    Can you teach us how to make a bot for another MMORPG browser game? Also I love your vids

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      Thanks! I've had several requests for Runescape so I've been researching a video for that.

    • @scarasect5161
      @scarasect5161 4 года назад

      @@LearnCodeByGaming is that a browser game?

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      @@scarasect5161 Oh man it used to be, but it looks like it's not anymore. Any suggestions for a good browser game?

    • @scarasect5161
      @scarasect5161 4 года назад

      @@LearnCodeByGaming try a pokemon game? Like pokemon planet

    • @GreyVWilk
      @GreyVWilk 4 года назад

      @@LearnCodeByGaming hordes.io is good browser mmo

  • @zyroxpubgm922
    @zyroxpubgm922 Год назад

    Love bro...keep it up

  • @greedsloth1516
    @greedsloth1516 4 года назад +2

    Thank you for the tutorials!

  • @charlesedwards8201
    @charlesedwards8201 3 года назад

    I read somewhere that if you play a video game (preferably an FPS) only with your lazy eye it will improve significantly. thanks for the video

  • @felix5729
    @felix5729 2 года назад

    You video is so awesome. Can you please release more AI gaming videos?

  • @chicagoballa-cj2ey
    @chicagoballa-cj2ey 4 года назад +2

    Is there a guide for like if it detects a certain image on a screen it presses a certain key?

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      Yes, I cover that in part 4 of this tutorial series. I'm also working on an OpenCV tutorial series right now that covers more advanced image recognition, so you might be interested in following that. It'll probably be part 6 or 7 in that series before we apply the automated input, because it's focusing on the object detection part first.

  • @viralvideos9227
    @viralvideos9227 4 года назад +2

    How to make a pubg or Csgo bot?? And how to train my it

  • @magicassassin1947
    @magicassassin1947 4 года назад +1

    ❤️❤️❤️❣️

  • @Stealthy_Sloth
    @Stealthy_Sloth 5 месяцев назад

    Mr Anderson! How will you do a shield inversion if you... have no shields!

  • @wang1112
    @wang1112 3 года назад

    thank you

  • @VinnieDreher
    @VinnieDreher Год назад

    I love you!

  • @aniketsingh4403
    @aniketsingh4403 4 года назад +2

    Hey i wanted to know how this modules are made..i just can't imagine how it is made.. how they operate hardware and software together 🤔 and made a such a useful modules for us..i have been trying to understand for a week but i can't figure it out so any recommendations 🙏

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +2

      The simplified explanation is they work in layers: the hardware manufacturers write software called drivers that know how to translate signals from the hardware into specifications set by the operation system. The operating system is the glue that holds it together: it sets the standards for the driver interfaces and also provides an outbound interface for programmers to access. Usually you'll have libraries/modules that know how to talk to these operating system interfaces, and then application developers can use the libraries/modules to develop their code more efficiently. If you look at the PyAutoGUI source code, you'll see that it simply provides the functions listed in its documentation for us application developers to use, and then it takes those inputs and translates them to the correct operating system API calls. And it's got separate code in there for doing the Windows, OSX, and Linux X11 calls. Maybe I should make a video about this :)

    • @aniketsingh4403
      @aniketsingh4403 4 года назад

      @@LearnCodeByGaming wow 🔥 finally a got a bit knowledge about it...thank you very much.and one more question if i wanted to make this types of modules so what are the things i should learn? And ya you should make a video about it..it might be very helpful for those who are curious about this

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      @@aniketsingh4403 You should get comfortable with Python first. Then start a project that utilizes pywin32 and/or ctypes.windll to interact with the Windows operating system. Then you can package it up as a library that others can pip install by making a PyPI account and following these steps: packaging.python.org/tutorials/packaging-projects/

    • @aniketsingh4403
      @aniketsingh4403 4 года назад +1

      @@LearnCodeByGaming thanks again for helping out in this and you are doing a good job i hope your channel get more subscribers)

  • @joeshadowart
    @joeshadowart 4 года назад +2

    Can you do a match 3 bot tutorial?

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 года назад +1

      I've added it to my list of video ideas. Thanks!

    • @joeshadowart
      @joeshadowart 4 года назад +1

      @@LearnCodeByGaming Thanks for the reply!!

  • @ياسرمحمد-ص5ج3ت
    @ياسرمحمد-ص5ج3ت 3 года назад

    *Good job man, Can you also do tutorial about Third Person or First Person games bot ? I will be appreciated :)*

  • @dogspace2776
    @dogspace2776 7 месяцев назад

    hey I need help getting the right version of the net-7 emulator thing it says I need 2.45 but I have 1.9.9

  • @Fares2012FA
    @Fares2012FA Год назад

    good morning sir, i noticed that when i record my actions, the keys Q and E are super inaccurate, lets say i press it for half sec, when i play it back, it over press it for over half sec for some reason and end up hitting the walls in game

  • @taubatpedia8021
    @taubatpedia8021 3 года назад +1

    How to make bot for Rf Online Games?

  • @XXxlightmarex
    @XXxlightmarex 2 года назад

    How do more sophisticated bots interface with the video game? Is PyAutoGUI industry standard for video game bots?

  • @thevictor180
    @thevictor180 3 года назад

    I'm getting this error when I run e&b: couldn't connect to the update server. try again later

  • @faheemlfc97
    @faheemlfc97 2 года назад

    does this help a beginner like me
    learn python and can i learn with these tutorials on runescape?

  • @rianhiggs6113
    @rianhiggs6113 3 года назад +1

    What is the name of the theme you are using?

  • @rokon1991
    @rokon1991 4 года назад

    How do i pull android game data from android emulator? I want to automate android game. For that I need various information like health, inventory list, how much space left in inventory etc... I tried pyaotigui locate on screen function but it's not reliable... I want to pull accurate game data and process that data and perform task according to that data... How do i do that?

  • @MeThirdLeg
    @MeThirdLeg 3 года назад

    What do I do for the key that it says is on the back of the CD?

  • @patdevine3151
    @patdevine3151 3 года назад

    So many bumps in the road getting this going, I've got my character created but keeps hanging at the galaxy screen. I followed the forum a deleted the galaxy.dat file. Any ideas my friend?

  • @mxh1t
    @mxh1t 2 года назад

    can i get banned if i use it in valorant deathmatch

  • @carlososuna1194
    @carlososuna1194 4 года назад +1

    crack bro

  • @craeddock
    @craeddock 3 года назад

    I think that more people not wanting to do repetitive tasks enough, that they want to bot is a good sign for society. Its a shame its discouraged.

  • @dharmanderkumar7426
    @dharmanderkumar7426 11 месяцев назад

    Lord mobile game ke liye bot Kaise banaen plz reply

  • @schoolsurvivor8074
    @schoolsurvivor8074 4 года назад +4

    Tip : don't go into a romantic relationship with it

  • @gabrielbasco7614
    @gabrielbasco7614 3 года назад

    uh why is he's eye in a different direction I mean I'm not a bully I'm just asking if he has a problem

  • @Wealth1Wave
    @Wealth1Wave 3 года назад +1

    i thnk u botted the comments too

  • @daveking1528
    @daveking1528 2 года назад

    wtf what happened with your eyes man?

    • @ThyCrowing
      @ThyCrowing 2 года назад

      He was fighting a giant snake cockatrice, and after dealing it the killing blow, it spit venom in his eye out of spite before dying.

  • @fiuridistroyer6205
    @fiuridistroyer6205 3 года назад

    so not to be ofensive but whats up with your left eye, its just looking in a random direction

  • @BrentMalice
    @BrentMalice 11 месяцев назад

    based ty.

  • @berkeyaver3186
    @berkeyaver3186 2 года назад

    do you watch tenis ?