Category "pyautogui"

Python - Multiple Clicks at different location on screen at the same time

I have this idea but I don't even know where to start haha Basically, Lets say I want to click these 2 locations (50, 100) and (1000, 500) I could just click

cv2.error: OpenCV(4.5.2) 👎 error: (-5:Bad argument) in function 'cvtColor'

this is my code and I have a problem. What is the solution for it, please? I try to make a screen recorder: import numpy as np import cv2 import pyautogui code

Trying to make game detect mouse clicks using python, all the libraries failed

About 3-4 months ago, I decided to use my basic python knowledge to write a simple farming bot for an old RPG. After some struggling, I found a way to use pyaut

Documentation says to use a confidence parameter, but it throws an error

Edit to include code snippet. I am developing an app with pyautogui. I want to match a region on the desktop and click it. Calling the locateOnscreen function,

Python, pyautogui: how to explicitly for os to find required file/dir?

I am writing Selenium tests and faced an issue when I need to upload an image, but the input I want to interact with is hidden from view and doesn't have a 'val

Unable to install PyAutoGui on Linux

I'm trying to install pyautogui, and have an error. I tried to install pyautogui on older python version, and have same error. I also tried to install all depen

Speeding up pyautogui screenshot() with region

I'm trying to speed up the screenshot function in pyautogui since I only need a small portion of the screen. The region variable is supposedly the way to this a

datetime expected float, got string

I'm trying to make a pyautogui script that adds the users input to the current time using the datetime/timedelta module. I want the pyautogui part to use typewr

datetime expected float, got string

I'm trying to make a pyautogui script that adds the users input to the current time using the datetime/timedelta module. I want the pyautogui part to use typewr

PyAutoGui uses a scaled resolution of my screen for functions (MacOS)

I'm running on Macbook and my issue is that functions like pyautogui.moveTo use a coordinate system of 1440,900 when my screen size is 2560,1600) This is a prob

Pyautogui don't work in game window

I'm making some tests using Pyautogui on games. But in those games that change your cursor and fullscreen games, none of the methods work. I'm trying now on Ra

Pyautogui don't work in game window

I'm making some tests using Pyautogui on games. But in those games that change your cursor and fullscreen games, none of the methods work. I'm trying now on Ra

How do I wait for pyautogui.locateonscreen() to return a value?

I am creating a webbot and I want to wait for a certain image to appear on the webpage before I continue my script. I am making use of pyautogui.locatesonscree

How to know if the left mouse click is pressed

I am using PyAutoGUI library. How can I know if the left mouse button is pressed? This is what I want to do: if(leftmousebuttonpressed): print("left") els

I'm stuck on pyautogui stuff

im trying to make a program that writes a certain other program from a txt, giving in input a word that is associated with a certain word. For doing so im using

I'm stuck on pyautogui stuff

im trying to make a program that writes a certain other program from a txt, giving in input a word that is associated with a certain word. For doing so im using

How to use PyAutoGUI to detect RGB values

I'm trying to build a small bot that clicks only certain colours. I believe pyautogui.displayMousePosition() should display the position of my mouse as well as

Windows Desktop GUI Automation using Python - Sleep vs tight loop

I am using PyAutoGUI library of Python to automate GUI. The application which I am automating opens a new window after I am done with data entry on my current w