pyautogui

How do I press 2 keys at a time using pyautogui?

How do I press 2 keys at a time using pyautogui? Question: I want to press control + left arrow on my mac to swipe my screen. This is what I tried: import pyautogui pyautogui.press(["ctrl" ,"left"]) it does not work. Asked By: bar coding || Source Answers: For this you can use pyautogui.hotkey(). In your …

Total answers: 2

how can I use persian language text in pyautogui library

how can I use persian language text in pyautogui library Question: I want to fill some fields using pyautogui library But the problem is that when I want to fill the fields in Persian language, it is not done How should I solve the problem of this library in the Persian language? I don’t even …

Total answers: 1

Multiple object returns from method not acting as expected

Multiple object returns from method not acting as expected Question: While playing around with pyautogui I decided to make a method to limit the position of my cursor depending on the size of my monitor, since I was moving my cursor randomy. This is what my first attempt looked like. max_x = 10 max_y = …

Total answers: 2

Trying to make an online slots click bot

Trying to make an online slots click bot Question: I’m trying to code a bot in Python that will play a demo slot game for me. I want the bot to click a button when it appears on screen, a certain number of times. So for example, at the start of the game, the bot …

Total answers: 1

Problem with looping in python with pyautogui and keyboard

Problem with looping in python with pyautogui and keyboard Question: Hello my first time posting, I have a problem with python. So I have this code and it’s a keybind like when I press the number 1 i need to execute1() but after this run I don’t want the program to exit but just wait …

Total answers: 1

How can I make image recognition faster on python?

How can I make image recognition faster on python? Question: I want to recognize some photos from a game and used python for it, if I run code with less characters code works fine but when I continue to add characters it often can’t recognize characters because they disappear fast. I think the main problem …

Total answers: 1

Pandas run Converting program to contents of a folder

Pandas run Converting program to contents of a folder Question: I’ve created a program so that I can split the column into 2 columns by specifying the location of the file but I would like to do this for an entire folder so that the process can be a bit faster. Here is the code …

Total answers: 2

Python code to close all open application in windows

Python code to close all open application in windows Question: I am working on pyautogui for locateonscreen but I need to make sure I have a clean windows prior to running it. I need help with a code that will kill/close all open/active windows application and then open a single exe using subprocess. Asked By: …

Total answers: 2

Python Script Failing to Open Firefox.lnk file on Desktop Path

Python Script Failing to Open Firefox.lnk file on Desktop Path Question: TLDR; I have a python script that uses autopygui to click on a file and open it, but it does not work with lnk files located in the same path. I have a little script using pyautogui to screenshot a desktop icon and save …

Total answers: 2