pyautogui

Tkinter – TTK – Button change state after click

Tkinter – TTK – Button change state after click Question: how can i change the state of a button made with TTK in Python after i clicked it ? I want to disable the button START after i press it once and re-enable it after pressing STOP. I want this because my code creates a …

Total answers: 1

How to close a while True loop instantly Python

How to close a while True loop instantly Python Question: I have a problem … How can i press P on my keyboard and close the entire program faster ( i would like instantly ) ? The script that i made runs in a loop ( Loop B ) and checks for an image on …

Total answers: 1

pyautogui how do i write outside my code editor

pyautogui how do i write outside my code editor Question: i am trying to make a macro and i have run into some problems. whenever i try to make it type something outside vscode the program runs but it doesn’t type anything. it works fine typing inside vscode though so i know it works. i …

Total answers: 1

Python 3.10.6 /w pyautogui Display Message Boxes, crashes

Python 3.10.6 /w pyautogui Display Message Boxes, crashes Question: Python: 3.10.6, os: MacOS 12.6, Software: VS code I want to confirm before activating the mouse_click()with pyautogui’s message box (.alert or .confirm). Running the script the message box opens, and if I do nothing its okey. But once I click in the message box, a button …

Total answers: 2

ubuntu python script use PyAutoGui to press some buttons not run when make the focus on the sublime text editor

ubuntu python script use PyAutoGui to press some buttons not run when make the focus on the sublime text editor Question: I wrote this script in python import pyautogui import time time.sleep(.1) pyautogui.keyDown("ctrl") pyautogui.press("a") pyautogui.keyUp("ctrl") pyautogui.press("c") pyautogui.press("p") pyautogui.press("p") pyautogui.press("t") pyautogui.press("enter") pyautogui.keyDown("ctrl") pyautogui.keyDown("shift") pyautogui.press(",") pyautogui.keyUp("ctrl") pyautogui.keyUp("shift") pyautogui.press("tab") And I created a shortcut in ubuntu to run …

Total answers: 1

Pyautogui keeps clicking at the mouse location after finding the image

Pyautogui keeps clicking at the mouse location after finding the image Question: The code below keeps clicking on its own after finding the set image and clicking on it but after that it keeps clicking by itself on the current mouse x,y. How can i make it so the click will only happen 1x after …

Total answers: 1

How to trigger mouse clicks only when a key is pressed ? In Python

How to trigger mouse clicks only when a key is pressed ? In Python Question: I want to make a program or when I click on a key the mouse clicks automatically (as long as I click on the key) if I do not click on the key it stops. I don’t want the clicks …

Total answers: 1

How to properly search for and randomly click multiple images with pyautogui?

How to properly search for and randomly click multiple images with pyautogui? Question: One of my initial python courses automates a simple cookie clicking game by using pyautogui.click at specific cordinates. I am trying to take this further by using the locateonscreen image functions and the random module to locate images and then randomly click …

Total answers: 1

Alternative to pyautogui for desktop automation

Alternative to pyautogui for desktop automation Question: I have created a software that processes images to do automation of desktop application Itunes. It is working fine but I want it to run on servers. But it would not have visual data while on server. The code I wrote is below import pyautogui import time def …

Total answers: 2