PyAutoGUI - Computer GUI automation using Python (Control mouse and keyboard)

This is the first tutorial video on PyAutoGUI, a computer GUI automation package. In this PyAutoGUI tutorial I will teach you how to control your mouse and keyboard using functions of PyAutoGUI python library and then show a sample project. Using this package you can automate anything on your computer.
So basically this is PyAutoGUI tutorial on mouse and keyboard functions
Timestamps:
0:00 - PyAutoGUI introduction
1:07 - Install and import pyautogui
1:35 - pyautogui mouse operations (automate mouse)
10:11 - pyautogui keyboard operations (automate keyboard)
11:44 - A simple project to open notepad and type something
Python and VS Code download
www.python.org/downloads/
code.visualstudio.com/download

Пікірлер: 63

  • @coding101withsteve8
    @coding101withsteve85 ай бұрын

    Hello All 🙋🏻‍♂️ If you have any kind of customized tool or app request. You can reach out to me on Instagram or email. I can create tools or apps for you. instagram.com/stevegen1907 OR coding101withsteve.freelance@gmail.com Thank You

  • @hauntedhobbies

    @hauntedhobbies

    Ай бұрын

    Is there any way to do a variable function for duration/pauses? I'd like to use this move/click the mouse randomly, so as not to be flagged as a bot.

  • @benlong1062
    @benlong10622 жыл бұрын

    Great video! Glad KZread recommended it. I really like how this guy explains things, very clear and nice.

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Thank you so much. Glad that things were clear to you 😇😇

  • @notmerkyy
    @notmerkyyАй бұрын

    Really comprehensive tutorial, thanks a ton!

  • @TheAbhimait
    @TheAbhimait7 ай бұрын

    Bro, you really made my life so easy. I do web automation in selenium but windows automation was something i really wanted to make my product better. Thank you man. This tutorial really helped me

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    Woaah! Thank you and welcome 😊😊😇

  • @JoaoSantos-jb7ul
    @JoaoSantos-jb7ul Жыл бұрын

    Nice video, Steve! Thank you! Best regards from São Paulo, Brazil!

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    You're most welcome 😇❤

  • @user-gi6ye2dq3d
    @user-gi6ye2dq3d5 ай бұрын

    You explained well. Thanks for that ❤

  • @coding101withsteve8

    @coding101withsteve8

    5 ай бұрын

    You're most welcome 😇

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

    Thank you for this very useful video!

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    You're most welcome 😇 Thank you

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

    Very helpful ❤

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

    Great video. Thanks a ton!😄

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    You're most welcome

  • @SultanAhmed-oy2zc
    @SultanAhmed-oy2zc5 ай бұрын

    Amazing vedio ❤

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

    Instead of the loop, just import time and do time.sleep(5) first then it’s more clean or more time if u need, also I would suggest too import pyautogui as py then later u only need too do py. Instead of pyautogui.

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

    Thanks for the video, you helped me a lot

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    I'm glad I helped you 😇 You're most welcome ❤

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

    I learned from this

  • @qwm1007
    @qwm10074 ай бұрын

    Nice!

  • @PompeyHero
    @PompeyHero2 жыл бұрын

    Nice content buddy...

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Thank you so much ❤

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

    Can this library be used to perform visual interaction or visual recognition?. Let's say I need to take a screenshot and compare the screenshot with my desktop, does this get the job done?

  • @blckviolin
    @blckviolin2 жыл бұрын

    👍 thanks

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    You're welcome 😊

  • @_raick
    @_raick4 ай бұрын

    Hey thanks for the video! If you have any doubts, what can I do and display a notification on the screen.

  • @crazyminecrafters123
    @crazyminecrafters1232 жыл бұрын

    ty

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

    Hi, anyone had a problem with import pyautogui, because is installed correctly with pip .... but when I call any function it says not exist?

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

    how do i use this with multiple python selenium instances running at once whilst handling errors ?

  • @drizzersilverberg
    @drizzersilverberg7 ай бұрын

    anyone know how to deploy pyautogui script in remote server and execute it via ssh? because I got display error.

  • @tansinghrathore4572
    @tansinghrathore45723 ай бұрын

    Are there any libraries that use computer vision for GUI automation. Please suggest.

  • @TruthSeeker7101
    @TruthSeeker71012 жыл бұрын

    Thank you for the video, I have a question,I created automation with the Batch file, you can open all the applications and websites you need in one click, Can we do this in python?

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Hey, yes you can do it in python also by using the os and requests package. You'll get it on google, how to use it.

  • @TruthSeeker7101

    @TruthSeeker7101

    2 жыл бұрын

    @@coding101withsteve8 Thank you

  • @user-ww2lc1yo9c
    @user-ww2lc1yo9c11 ай бұрын

    Is PyAutoGUI able to "understand" a GUI e.g is it able to understand things like Text Box, Button, Dialog Box e.t.c.? I am asking this since using XY coordinates means that if the user changes screen resolution or uses multiple displays, then the PyAutoGUI program will simply fail to work.

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    I agree. You can try locateonscreen method. Check my other video on Pyautogui. Hope that helps ❤

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

    how do i make it press spacebar?

  • @alegitimatecar5377
    @alegitimatecar53772 жыл бұрын

    Can you ask python to nickname the pyautogui to something else, so you can type, for example, print(bot.size())

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Yes you can create an alias. Like this, import pyautogui as bot Then use bot instead of pyautogui, bot.size()

  • @bomewame5146
    @bomewame51462 жыл бұрын

    thank you so much but I have a problem with ( moveTo ) it doesn't go where I write please help me

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    May I know what are you trying to do and what coordinates have you passed to the moveTo function.

  • @insadeyt
    @insadeyt20 күн бұрын

    please a tutorial series for pywinauto. pyautogui is not that powerful for gui automation... 🙏🙏🙏

  • @RideWithAnthony
    @RideWithAnthony7 ай бұрын

    Why I need to to hit enter

  • @tylerrobinson-rp9lo
    @tylerrobinson-rp9loАй бұрын

    How do I run a command Ik i look dumb for asking but I cant figure it out

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

    can it reads popup text in software? or specific area?

  • @SmallSpoonBrigade

    @SmallSpoonBrigade

    9 ай бұрын

    That's what I was wondering about. Without that ability or the awareness about what it's over, you're going to have a lot of issues if the UI for a program changes or if another program suddenly appears over top of the one you're working with.

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

    I've a big problem with all the tutorials out here about the pyautogui. No one talk about how to bind keys to the code. IRL the code should be packed in a function and bind to a hotkey so whenever you press the hotkey to run the macro. You can bind keys with python by importing another module. My conclusion, if you wanna run some automation/macro for your gaming/work, forget that and just use AutoHotkey.

  • @zorrofit5880

    @zorrofit5880

    Жыл бұрын

    For binding keys to the code AutoIt is the best language. But only for windows.

  • @user-ww2lc1yo9c
    @user-ww2lc1yo9c11 ай бұрын

    What are the alternatives to PyAutoGUI ?

  • @coding101withsteve8

    @coding101withsteve8

    6 ай бұрын

    Widely used library is Selenium

  • @user-ww2lc1yo9c

    @user-ww2lc1yo9c

    6 ай бұрын

    @@coding101withsteve8 You mean Selenium is not a cryptocurrency?

  • @lookman06
    @lookman062 жыл бұрын

    Is Pyautogui Free?

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Yes it is.

  • @cyberwallah
    @cyberwallah2 жыл бұрын

    Hiii

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Hello 🙋‍♂️

  • @00samkit
    @00samkit2 жыл бұрын

    You deleted That KZread video one

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    Hello Samkit, I'm glad you noticed it. I did not delete it. Somebody reported it and KZread deleted the video saying I violated their terms and policies. I don't know cause there are many similar videos still mine was deleted. 🥲

  • @VickyLifeVlogs
    @VickyLifeVlogs2 жыл бұрын

    Frnd please reply

  • @coding101withsteve8

    @coding101withsteve8

    2 жыл бұрын

    I replied 😁

  • @VickyLifeVlogs

    @VickyLifeVlogs

    2 жыл бұрын

    @@coding101withsteve8 thnx frnd😂😊