1,863 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
28
views
Unexpected behavior of pyautogui on Fedora
I'm currently trying to learn some pyautogui. I wanted to create function, that will hold mouse button and move it from one point to another, but clicking functionality seems to be not working ...
-1
votes
1
answer
56
views
how to scroll in the website with pyautogui when the page is ready
i have a program that opens the chrome then search for something i want when the search is ready it scroll using the same pyautogui but only when the search is ready i know i can use time.sleep(second)...
-3
votes
1
answer
131
views
Fishing BOT - How to automate it?
First post here.
Video of the minigame: https://youtu.be/iwO5BYg590Q
The objective is to keep the target square (which changes colors constantly) inside the yellow rectangle for as long as possible.
I'...
1
vote
1
answer
55
views
pyautogui having trouble finding the given image
I'm using pyautogui.locateCenterOnScreen('image.png') to find/click a pink 'quest' button in Cornerpond.
Even at ~0.85 confidence, it's clicking the same-sized, orange 'shop' button (no matches at 0....
2
votes
0
answers
69
views
Why does pyautogui.write() skip Polish characters like "ś" , "ą" when typing into Windows apps?
I'm automating a legacy system on Windows using, among other things, pyautogui. Everything works fine except one major issue: customer names with Polish characters like ś, ż, ł, etc., are typed ...
-3
votes
1
answer
69
views
Pause loop to make a certain action then continue where you left off inside of it
import pyautogui
import time
def RunD(Down, Up): #Up is the parameter that creates the delay
pyautogui.keyDown('d')
pyautogui.mouseDown(button='left')
time.sleep(Down)
pyautogui.keyUp('...
1
vote
3
answers
198
views
Reducing Latency in Pixel Scanning for Input Simulation
I am developing a Python script to pass a challenging minigame in a single-player title. My goal is to unlock a specific achievement within this game, a task I've spent over 10 hours attempting ...
0
votes
1
answer
58
views
python 3 - pynput window click listener - relative coordinates
I'm trying to write a click bot that can read and write (record). So I need a click listener.
Since pyautogui doesnt have a click listener, I'm using pynput. But pynput only returns the X,Y click for ...
1
vote
0
answers
41
views
pyautogui problem integration when generating .exe with pyinstaller
I have a problem with a program that uses Selenium to manipulate the web and integrates a class we created that encapsulates the use of pyautogui to simulate key pressing.
When I run the program in ...
-1
votes
1
answer
66
views
How do I fix this code? the cursor just fly everywhere even thought I want to restrict it to a certain area
Was trying to make a code to drag something onto another thing with different color pixel, one of them keep changing color with tolerance over 70 which i just took the r value since it only range from ...
-1
votes
2
answers
69
views
How optimize this code for reduce the execution time?
I am developing a small Python program that simulates pressing, holding, and releasing keys with random delays. This is intended to make the process look more natural, as if a real person is typing ...
-2
votes
1
answer
143
views
python 3 - win32api.PostMessage click on minimized window
I'm trying to click a windows application window while its in a minimized state (don't maximize).
The following code is able to take a snapshot image of a minimized application, then perform image ...
0
votes
0
answers
34
views
pyautogui hotkey working on the first iteration and not after (Mac)
I'm trying to automate a simple process using pyautogui: select an item with a link on an app window, open the link on my browser, copy the link from the address bar, move on to the next item, and ...
-1
votes
1
answer
40
views
Pyautogui only activating when it is the first if statement
Im using pyautogui and detecting multiple images through three if statements. But only the top if statement is activated, even though the other if statements should be true according to previous tests
...
0
votes
0
answers
47
views
Problem: Text Not Pasted After speech Recognition
The code uses Vosk for speech recognition and is supposed to paste the transcribed text into the current input field using pyperclip.copy() and pyautogui.hotkey('ctrl', 'v'). The speech is recognized ...