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
Corner failsafe only covers the primary monitor #66
enhancementNew feature or requestpriority: mediumShould be addressed in the next release or twosafetyClick-safety behavior (stop paths, limits, failsafe)
The corner failsafe is the "slam the mouse into a corner" escape hatch, and it is on by default. On multi-monitor desktops it only works in the four corners of the primary monitor (README, Known limitations). Multi-monitor clicking was just added (#40), so users clicking on a secondary monitor are exactly the ones whose instinctive escape gesture does nothing.
Evidence
PyAutoGUI's failsafe checks pyautogui.FAILSAFE_POINTS, derived from pyautogui.size() (primary monitor only).
autoclicker/core/safety.pyapply_failsafe only toggles pyautogui.FAILSAFE.
README: "The corner failsafe watches the corners of the primary monitor only."
Suggested approach
Implement the check in the engine: before each click, read GetCursorPos and stop with STOP_SAFETY if the cursor is within a few pixels of a corner of any monitor (enumerate with EnumDisplayMonitors / GetMonitorInfo, refreshed on start alongside _screen_bounds). Keep PyAutoGUI's check as a backstop.
Only count corners that are reachable "dead ends" (not shared with an adjacent monitor), so moving between screens never trips it by accident.
Reuse _trigger_safety_stop so the status and session log stay consistent.
Done when
Moving the cursor into a corner of any monitor stops the run with "Failsafe: mouse moved to a screen corner".
Unit tests cover a two-monitor layout including negative coordinates.
The Known limitations bullet is removed from the README.
enhancementNew feature or requestpriority: mediumShould be addressed in the next release or twosafetyClick-safety behavior (stop paths, limits, failsafe)
Activity