Python Automation with PyAutoGUI | Full Course With Projects!

Full tutorial on Python's PyAutoGUI module with 3 awesome projects to get you started! 🔔NEW videos, tutorials and projects EVERY week so subscribe and hit the bell button so you don't miss an update!
To install PyAutoGUI:
pyautogui.readthedocs.io/en/l...
To install in your current project in PyCharm see 01:15 of this video: • How to make a TikTok b...
RELATED VIDEOS:
▶️Text Your Friend the Entire Script of Shrek - SPAM Bot - Tutorial:
• How to make a Spam Bot...
▶️TikTok Liker Bot - Tutorial:
• How to make a TikTok b...
Timestamps:
00:00 - Introduction (explaining the module and projects)
0:48 - Getting started with PyAutoGUI
01:21 - Mouse Functions
07:20 - Click Functions
09:50 - Scroll Functions
11:10 - Mouse Up & Down (with mini example)
15:30 - PROJECT 1: Automated Drawing in Paint
20:10 - FAILSAFE - Important for aborting Python files (including example)
23:17 - PROJECT 2: Automated Liking on Social Media
29:31 - Keyboard Functions
31:19 - PROJECT 3: Automating the Dino Game
33:27 - Screenshotting with PyAutoGUI
🖥Code: github.com/code-of-the-future...
🔗 Social Media Links 🔗
▶️KZread: / @codeofthefuture
📸 Instagram: / codeofthefuture
📱TikTok: / codeofthefuture
📘Facebook: / codeofthefuture
🦜Twitter: / code_ot_future
📝LinkedIn: / code-of-the-future
🌎Website - Features Articles: www.codeofthefuture.com/articles
📂GitHub: github.com/code-of-the-future
⭐️ Hashtags ⭐️
#Coding #Programming #Tutorials #CodeOfTheFuture #WomenWhoCode #Python
Subscribers - 6200
💸 Donations 💸
⬇️Any donations are gratefully received & all donations go straight back into this channel!⬇️
Patreon:
/ code_of_the_future
One time donation:
ko-fi.com/codeofthefuture

Пікірлер: 209

  • @louise7561
    @louise75612 жыл бұрын

    Such an amazing tutorial - projects were so fun! Thank you! Just donated to your Ko-Fi for all your hard work❤️

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much, that’s so kind of you! 💛

  • @NachoManBoy4

    @NachoManBoy4

    2 жыл бұрын

    Yes, excellent tutorial, especially for a novice like myself. Plus she's cute 🤩

  • @eduardofernandez2469

    @eduardofernandez2469

    2 жыл бұрын

    Thank you. Please make a video about how to click in another Windows please

  • @deadpopcorn8523

    @deadpopcorn8523

    Жыл бұрын

    @@CodeoftheFuture im done, it says "modulenotfohnderror" but ive downloaded pyautogui several times with pip.... its on python v3.10.7 if ur wondering

  • @OoMikkioO
    @OoMikkioO2 жыл бұрын

    I started 24 hours ago watching videos about Python, just stopped to sleep, and now I'm here. I can't believe I didn't start programming earlier.

  • @robinrebiere5570

    @robinrebiere5570

    8 ай бұрын

    Did you keep learning python? I'm curious to know where you at now

  • @DataSet

    @DataSet

    Ай бұрын

    Now where are you two years later

  • @pradumnkumar
    @pradumnkumar Жыл бұрын

    I love how well this whole video is put together. You also have good communication skills. You speak clearly which kept me engaged throughout.

  • @abdelkaderabbes3802
    @abdelkaderabbes38023 жыл бұрын

    Thanks Ellie! ❤️ Note: Don't skip Ads to help her

  • @CodeoftheFuture

    @CodeoftheFuture

    3 жыл бұрын

    Thank you so much!!

  • @donnyguntmash605
    @donnyguntmash6052 жыл бұрын

    I have tried following other guides and tutorials but not a single one has been able to actually explain things in such a way that is easy to understand! THANK YOU SO MUCH

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much for your lovely comment! ☺️

  • @sillystuff6247
    @sillystuff6247 Жыл бұрын

    You have not over complicated PyAutoGUI. You explained it in a simple way. Not many tutorials do that.

  • @soljashet5692
    @soljashet56922 жыл бұрын

    Underrated channel. Gave me ideas for a bot i wanted to write.

  • @feridobeidat4989
    @feridobeidat4989 Жыл бұрын

    Your channel is seriously underrated! Great job and thanks

  • @AlexMercersRevenge
    @AlexMercersRevenge Жыл бұрын

    This was a great tutorial, thank you. Seriously, this jump started my coding career.

  • @Bruno-oj3zb
    @Bruno-oj3zb Жыл бұрын

    4:05 if you want to see the mouse position " in real time" you can create a loop , something like this will show the mouse position every half a second. import pyautogui import time import threading def refreshmouse(): threading.Timer(0.5, refreshmouse).start() print(pyautogui.position()) refreshmouse()

  • @Bruno-oj3zb

    @Bruno-oj3zb

    Жыл бұрын

    or use this, will show the mouse position in the console and also the RGB values of the current mouse position , lets say the mouse its over a picture it will show you the RGB value of the color of the picture. pyautogui.displayMousePosition()

  • @linusgoblin

    @linusgoblin

    10 ай бұрын

    directly in a terminal you can use: while true; do clear; xdotool getmouselocation; sleep 0.1; done

  • @angadsingh6478
    @angadsingh64782 жыл бұрын

    you can use ctrl+d(windows) or cmd+d(mac) to duplicate a line😊

  • @change_myself3200
    @change_myself3200 Жыл бұрын

    Amazing way , I'm newbie in programming but now after watched your video I'm able to do a lot of things through Python. Thank you very Much

  • @ByteBeacon9660
    @ByteBeacon96602 жыл бұрын

    This is a really good tutorial. Good job. I really needed this.

  • @pogi09282805724
    @pogi092828057242 жыл бұрын

    What a great tutorial! Keep it up please! We need people like you teaching us plebs.

  • @mustafaemre729
    @mustafaemre729 Жыл бұрын

    U made it simple man ur subscribers are well deserved

  • @jakariarafi9737
    @jakariarafi9737 Жыл бұрын

    Even though it was a lot, its exactly what i was looking for with such great brief explanations. Thanks bruv

  • @HTWwpzIuqaObMt
    @HTWwpzIuqaObMt2 жыл бұрын

    Awesome tutorial for beginners. I would like to mention that using the os lib helps a lot with navigating to other pages

  • @4424gamers
    @4424gamers Жыл бұрын

    If anybody wants to learn and understanding about coding then you are at perfect channel

  • @alexlascau1994
    @alexlascau19942 жыл бұрын

    This was actually incredible

  • @subirdev7151
    @subirdev7151 Жыл бұрын

    A very useful lesson for all aspiring softians

  • @batuhanoruccelik5775
    @batuhanoruccelik57752 жыл бұрын

    I like this video with pyautogui module. Thanks for your effort Ellie 😊

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much!!

  • @narsimhareddy7224
    @narsimhareddy722411 ай бұрын

    this is probably the most intresting module i would ever learn

  • @RivinduBRO
    @RivinduBRO2 жыл бұрын

    actually it was very useful for mee waiting for more turials like this very good and well done

  • @joseluisgalancabilla8792
    @joseluisgalancabilla8792 Жыл бұрын

    What an amazing and interesting tutorial!!! Thank you very much.

  • @azimurrr
    @azimurrr2 жыл бұрын

    The lesson was very helpful. Thanks a lot and although I don't know English well, I still understood everything. Thank you again :)

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much!! That really means a lot☺️

  • @photographer6419
    @photographer6419 Жыл бұрын

    Love your stuff! Big help!

  • @swaroop_vp
    @swaroop_vp11 ай бұрын

    Great tutorial. Expecting more from you. 😊

  • @Stuntlover-TM
    @Stuntlover-TM2 жыл бұрын

    Very nice tutorials! They are super easy to follow

  • @pgvideos9138
    @pgvideos9138 Жыл бұрын

    Frrrrr tNice tutorials man just straight forward !

  • @uglykaneki5165
    @uglykaneki51659 ай бұрын

    Thank you for your guide) Keep helping people to learn interesting modules

  • @eric0793
    @eric0793 Жыл бұрын

    Awesome tutorial, thanks a lot!

  • @hidemane3403
    @hidemane34033 ай бұрын

    i love this course, big thanks : )

  • @michaelponce5965
    @michaelponce59652 жыл бұрын

    Thanks for the info and easy breakdown! I recently learned about this neat little trick and figured I would share it with everyone watching this video as it relates to your "print(pyautogui.position())" bit: A super-cool way to get this info real-time without having to run this line over and over and over again is to: 1) Open CMD prompt 2) Type 'python' 3) Type 'import pyautogui' 4) Type 'pyautogui.displayMousePosition()' 5) Keep CMD open to view real-time X, Y coordinates of the cursor position as well as the RGB values! 6) Type 'Ctrl-C' to quit Found this in another video and it really helped me save a lot of time finding mouse coordinates. Thank you again for the video! Keep doing awesome stuff like this. :)

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Awesome, thanks so much for the tip!

  • @rons0098
    @rons009811 ай бұрын

    Really helpful, even for professionals

  • @nivoset
    @nivoset11 ай бұрын

    Just trying to learn python and found this library. Thanks for the breakdown, im going to be sully now and automate weird things because i can.

  • @danielqashqai5443
    @danielqashqai5443 Жыл бұрын

    Your course amazing 👏🏽

  • @MegaNachodude
    @MegaNachodude Жыл бұрын

    This was so helpful and well explained

  • @theswordandtrowel
    @theswordandtrowel2 жыл бұрын

    Thank u so much.......your accent makes it even better

  • @shamanu67
    @shamanu673 ай бұрын

    thanks for your time and for this awesome beginner tutorial!

  • @RiddleRations
    @RiddleRations3 ай бұрын

    Great job! Your videos are super cool!

  • @mangobrother
    @mangobrother Жыл бұрын

    What a wonderful tutorial. Much respect, madam. Subscribed.

  • @grandparick3176
    @grandparick3176 Жыл бұрын

    Thank you so much for such an amazing video with actual project. Funny thing is I used ur automated liking project to like ur tiktok videos and it worked perfectly and was so satisfying to see. Keep making more project videos.

  • @imranbendh784
    @imranbendh784 Жыл бұрын

    I love ur courses

  • @luqigongchang6213
    @luqigongchang6213 Жыл бұрын

    I fucking love you mate!! I saw a lot of videos for soft but tNice tutorials one is handsdown the best one! Love how your super calm and really take

  • @Venom_1200
    @Venom_12003 жыл бұрын

    It is very interesting to learn with you Please keep posting videos

  • @CodeoftheFuture

    @CodeoftheFuture

    3 жыл бұрын

    Definitely will do!🤩

  • @phy6geniuxYTcreations
    @phy6geniuxYTcreations2 жыл бұрын

    Amazing tutorials! :D

  • @ronaldogoat1130
    @ronaldogoat11302 жыл бұрын

    Your lesson so understandable. Thanks. It was useful for me..💛💚💙

  • @prashlovessamosa
    @prashlovessamosa Жыл бұрын

    Awesome project mam 😎 thanks for sharing.

  • @54-nileshparab96
    @54-nileshparab962 жыл бұрын

    Thanks for teaching me ❤️

  • @thanujamarasingha5628
    @thanujamarasingha5628 Жыл бұрын

    This is awesome 🤩🤩🤩

  • @davb9514
    @davb95142 жыл бұрын

    Thanks, very helpful.

  • @AutomobileHindi
    @AutomobileHindi8 ай бұрын

    Thank you ❤👍 Watched the full video

  • @natashasamuel9346
    @natashasamuel93462 жыл бұрын

    Great class. Keep up the good work. Thank You, Natasha Samuel

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much! I really appreciate your comment😁

  • @DarksilversXD
    @DarksilversXD Жыл бұрын

    That's a pretty good video, as a french guy I understood all and I don't even thought that you were talking in english lol

  • @Henry_Nunez
    @Henry_Nunez2 жыл бұрын

    Excelente 😊👏👏 Thank you 👉🔔

  • @motasemalbanna4812
    @motasemalbanna4812 Жыл бұрын

    Amazing.. thank you

  • @sujalbandodkar1862
    @sujalbandodkar1862 Жыл бұрын

    Awesome!

  • @ThaoMeoTV
    @ThaoMeoTV Жыл бұрын

    Good artical, thanks for sharing.

  • @jetspray3
    @jetspray32 жыл бұрын

    pyautogui seems to be your favorite python module.

  • @joselucianorivera9132
    @joselucianorivera9132 Жыл бұрын

    muy buen video, sencillo y fácil de entender. Gracias

  • @MsHackthat
    @MsHackthat Жыл бұрын

    Great example. For interacting with web, I believe selenium is the better option.

  • @amadeoangelquispehernandez
    @amadeoangelquispehernandez3 ай бұрын

    Muchas gracias ☺, eres lo máximo! Dios te bendiga 🙌

  • @narsimhareddy7224
    @narsimhareddy722411 ай бұрын

    awesome thank you soo much

  • @fauzaanu
    @fauzaanu2 жыл бұрын

    thanks. very easy to understand. :D

  • @dev6296
    @dev62963 ай бұрын

    Fantastic, very informative and valuable, thanks a lot dear

  • @sherifessam2942
    @sherifessam2942 Жыл бұрын

    Very nice tutorial

  • @swagatamirapu1077
    @swagatamirapu10772 жыл бұрын

    omg this is so much useful ....great video

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you so much!

  • @sambitsahoo4401
    @sambitsahoo4401 Жыл бұрын

    Thank you 💕💟❣️

  • @GIOVANNYQUIA
    @GIOVANNYQUIA2 жыл бұрын

    Thanks Pretty!

  • @shaileshsahani3313
    @shaileshsahani3313 Жыл бұрын

    i just love this tutorial this is osm

  • @bearstudios101
    @bearstudios101 Жыл бұрын

    Let me add my voice to the group of people who believe you should make an udemy course. I'm just jn minute 12 and my goodness this is brilliant stuff

  • @ProshivkaChanel
    @ProshivkaChanel Жыл бұрын

    Thank you for creating tNice tutorials playlist in soft soft, just starting out in soft production and there is so much to learn

  • @wqpeachy
    @wqpeachy Жыл бұрын

    instead of delaying the time to get the position, you could also just press ctrl s and then f5 to run

  • @appbagcreations9622
    @appbagcreations9622 Жыл бұрын

    simple and easy!

  • @linusgoblin
    @linusgoblin10 ай бұрын

    Also, if you are botting, its not a bad idea to sprinkle some randomness in the wait times, move locations and move durations.

  • @rahmatillokh
    @rahmatillokh6 ай бұрын

    awesome tutorial

  • @miljhil
    @miljhil2 жыл бұрын

    Great video

  • @songhye742
    @songhye742 Жыл бұрын

    Another knowledge again

  • @struggle375
    @struggle3756 ай бұрын

    Thank you

  • @hakanbilgin6875
    @hakanbilgin68753 ай бұрын

    thanks for video

  • @ismailhamouda8855
    @ismailhamouda88553 жыл бұрын

    thanks for sharing

  • @CodeoftheFuture

    @CodeoftheFuture

    3 жыл бұрын

    Thank you!

  • @Omar_Cubing
    @Omar_Cubing2 жыл бұрын

    subscribed 👍👍

  • @premkumarg406
    @premkumarg406 Жыл бұрын

    i got the solution tk u so much

  • @Life-zx5wp
    @Life-zx5wp2 жыл бұрын

    that's good lesson :)

  • @CodeoftheFuture

    @CodeoftheFuture

    2 жыл бұрын

    Thank you!!

  • @f2by512
    @f2by5122 жыл бұрын

    Pretty n awsum voice 👍🏼👍🏼👍🏼

  • @JasperPloum
    @JasperPloum8 ай бұрын

    I'm gonna try project 2 on your TikTok😌

  • @rimantasdanilevicius6754
    @rimantasdanilevicius67548 ай бұрын

    Nice beginner-friendly tutorial. Any plans to touch more intermediate topics? Regarding screenshot? Is it possible to command what size and area of the screen to take a screenshot?

  • @theheavy9308
    @theheavy93082 жыл бұрын

    THIS AMAZING this video is basically teaching how to be a hacker

  • @iambezapp711
    @iambezapp711 Жыл бұрын

    good job🥰🥰🥰

  • @JamesGeddesTV
    @JamesGeddesTV Жыл бұрын

    Great tutorial! I would pronounce GIU as "gooey"

  • @KoradiyaAbhay
    @KoradiyaAbhay Жыл бұрын

    Wow very amazing tutorial. BTW your specs is very nice. which specs do you have?

  • @tmb8807
    @tmb88072 жыл бұрын

    Interesting. Is it possible to invoke control elements (e.g. buttons) directly, without using mouse clicks or keyboard inputs?

  • @prakashrathod4877
    @prakashrathod487710 ай бұрын

    Are you kidding me? Are you for real? You are a born teacher. You explained so beautifully. I dont have words to express myself. Thank you so much for this simple explanation. The only thing I am not happy with is you did not explain how to take cropped screenshots and how to locate on screen functions. I hope you do a tutorial on it soon. Love you.

  • @0ne0fmany
    @0ne0fmany Жыл бұрын

    Hi. I'm trying to find a guide on the syntax to create a macro. Is there a way to start monitoring if a hotkey like ctrl+F1 is pressed and then run a script?

  • @oryn19
    @oryn192 жыл бұрын

    Thank you so much for this video. Btw your gorgeous 😍

  • @sreenathn7176
    @sreenathn71762 жыл бұрын

    Great

  • @stefenleung
    @stefenleung Жыл бұрын

    I suppose you put the code in a function and bind different hotkeys to call different functions. How do you bind the hotkey? In Autohotkey, it's a build-in IfWinActive/IfWinExist function to check if you're running certain program (like running a game), is that exist in pyautogui too? and how to do that?

  • @ebooo7368
    @ebooo7368 Жыл бұрын

    Dear madam,I was trying to use LocateOnScreen function in pyautogui and it worked at the begining.But now even if i loop the process to find the picture,the computer does not find it.Can you help me to fix this?

  • @kolchikayn5740
    @kolchikayn57406 ай бұрын

    thank s for your time actually, i wrote that comment using what I've just learned

  • @michellesanctuary9089
    @michellesanctuary9089 Жыл бұрын

    How to make a simple PYTHON code or even .batch command file to automatically zip an entire folder into a .rar file and the next folder too? Is it possible to create such code?