asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
9.96k stars 1.21k forks source link

Mouse click can't actual applied #784

Open LR-KING opened 1 year ago

LR-KING commented 1 year ago

I use pyautogui.click to click a certain position. it works fine in my main pc,but same program can't work in my second pc. they both win10 22H2 .In my second pc it seems everything works but click ,it can move the cursor to correct position and make a window be on top but just can't click the actual content in that window,i also try pydirectinput to fix this but it's the same problem.

lucassfernando commented 8 months ago

download this program: https://www.nirsoft.net/utils/nircmd.html Place it in your directory and then use the os model to execute and generate a click at the desired coordinate. Example: os.system("nircmd.exe sendmouse click 100 200")

LR-KING commented 8 months ago

download this program: https://www.nirsoft.net/utils/nircmd.html Place it in your directory and then use the os model to execute and generate a click at the desired coordinate. Example: os.system("nircmd.exe sendmouse click 100 200")

thanks for your answer, this issue disappear after i apply atlas os: https://atlasos.net . still don't know how this issue happens

brickfungus commented 8 months ago

FWIW I was getting this for both pyautogui and nircmd, but both worked when run on elevated permissions (admin mode)

LR-KING commented 8 months ago

FWIW I was getting this for both pyautogui and nircmd, but both worked when run on elevated permissions (admin mode)

i tried run as admin but no use at all

principalJiang commented 3 weeks ago

same problem with version 0.9.54