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
10.22k stars 1.24k forks source link

Click at position not on screen #762

Open chunyang-wen opened 1 year ago

chunyang-wen commented 1 year ago

Assume we move window half in the screen and half out of the screen.

import pyautogui as g
g.moveTo(-100, 100)
g.click()

The click seems not working

LR-KING commented 1 year ago

well ,maybe pyautogui can't click something that isn't in main screen just like it don't support mutimonitor