You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multi-monitor: picks on a left-side monitor click the wrong place; right-side monitors are rejected #40
The coordinate picker and the click engine use different coordinate spaces. Multi-monitor setups are effectively unsupported, and the failure is either silent or misleading.
Why it matters
Multiple monitors are common for the people who use autoclickers. Right now:
Monitor to the right of / below the primary: validation rejects the pick with "outside screen bounds", because bounds come from pyautogui.size(), which is the primary monitor only.
The bounds check is also off by one: 0 <= x <= screen_width accepts x == width, which is off-screen.
Get virtual-screen bounds from GetSystemMetrics(SM_XVIRTUALSCREEN / SM_YVIRTUALSCREEN / SM_CXVIRTUALSCREEN / SM_CYVIRTUALSCREEN) through pywin32 (already a dependency), and validate against [left, left+width) × [top, top+height).
Allow negative coordinates through parsing/validation.
Check that pyautogui's moveTo reaches negative/secondary coordinates on Windows. If it doesn't, move the cursor with SetCursorPos/SendInput directly.
Note that the PyAutoGUI failsafe corners refer to the primary monitor; document it or implement a virtual-desktop corner check.
Done when
Picking and clicking works on a secondary monitor on either side of the primary (manual test documented in the PR).
Bounds use a half-open range; unit tests cover negative and right-of-primary coordinates.
Activity