Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
425 views
in Technique[技术] by (71.8m points)

python - PyAutoGui the mouse wont move

I have this code:

import pyautogui
import subprocess

# iniciate the program
subprocess.call(['C:Program Files (x86)someprogramsomeprogram.exe'])

# Abrir folder
pyautogui.moveTo(110, 54, duration=1)
pyautogui.click(clicks=1, interval=1, button='left')

but the mouse wont move it the program initiates from new, it only moves it the exec is already open, what could it be?

question from:https://stackoverflow.com/questions/65858182/pyautogui-the-mouse-wont-move

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Its most likely a permission's issue. Have you tried running the program as an admin?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...