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
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
Ай бұрын
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.
Great video! Glad KZread recommended it. I really like how this guy explains things, very clear and nice.
@coding101withsteve8
2 жыл бұрын
Thank you so much. Glad that things were clear to you 😇😇
Really comprehensive tutorial, thanks a ton!
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
6 ай бұрын
Woaah! Thank you and welcome 😊😊😇
Nice video, Steve! Thank you! Best regards from São Paulo, Brazil!
@coding101withsteve8
6 ай бұрын
You're most welcome 😇❤
You explained well. Thanks for that ❤
@coding101withsteve8
5 ай бұрын
You're most welcome 😇
Thank you for this very useful video!
@coding101withsteve8
6 ай бұрын
You're most welcome 😇 Thank you
Very helpful ❤
Great video. Thanks a ton!😄
@coding101withsteve8
6 ай бұрын
You're most welcome
Amazing vedio ❤
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.
Thanks for the video, you helped me a lot
@coding101withsteve8
6 ай бұрын
I'm glad I helped you 😇 You're most welcome ❤
I learned from this
Nice!
Nice content buddy...
@coding101withsteve8
2 жыл бұрын
Thank you so much ❤
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?
👍 thanks
@coding101withsteve8
2 жыл бұрын
You're welcome 😊
Hey thanks for the video! If you have any doubts, what can I do and display a notification on the screen.
ty
Hi, anyone had a problem with import pyautogui, because is installed correctly with pip .... but when I call any function it says not exist?
how do i use this with multiple python selenium instances running at once whilst handling errors ?
anyone know how to deploy pyautogui script in remote server and execute it via ssh? because I got display error.
Are there any libraries that use computer vision for GUI automation. Please suggest.
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
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
2 жыл бұрын
@@coding101withsteve8 Thank you
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
6 ай бұрын
I agree. You can try locateonscreen method. Check my other video on Pyautogui. Hope that helps ❤
how do i make it press spacebar?
Can you ask python to nickname the pyautogui to something else, so you can type, for example, print(bot.size())
@coding101withsteve8
2 жыл бұрын
Yes you can create an alias. Like this, import pyautogui as bot Then use bot instead of pyautogui, bot.size()
thank you so much but I have a problem with ( moveTo ) it doesn't go where I write please help me
@coding101withsteve8
2 жыл бұрын
May I know what are you trying to do and what coordinates have you passed to the moveTo function.
please a tutorial series for pywinauto. pyautogui is not that powerful for gui automation... 🙏🙏🙏
Why I need to to hit enter
How do I run a command Ik i look dumb for asking but I cant figure it out
can it reads popup text in software? or specific area?
@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.
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
Жыл бұрын
For binding keys to the code AutoIt is the best language. But only for windows.
What are the alternatives to PyAutoGUI ?
@coding101withsteve8
6 ай бұрын
Widely used library is Selenium
@user-ww2lc1yo9c
6 ай бұрын
@@coding101withsteve8 You mean Selenium is not a cryptocurrency?
Is Pyautogui Free?
@coding101withsteve8
2 жыл бұрын
Yes it is.
Hiii
@coding101withsteve8
2 жыл бұрын
Hello 🙋♂️
You deleted That KZread video one
@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. 🥲
Frnd please reply
@coding101withsteve8
2 жыл бұрын
I replied 😁
@VickyLifeVlogs
2 жыл бұрын
@@coding101withsteve8 thnx frnd😂😊