Windows support — win32api SendInput for OS input injection #8

Open
opened 2026-04-26 21:43:44 -07:00 by pyr0ball · 0 comments
Owner

Add a Win32Backend to ActionExecutor using ctypes + SendInput (no external dependency beyond pywin32 which is pip-installable).

import ctypes
INPUT_MOUSE = 0
MOUSEEVENTF_LEFTDOWN = 0x0002
# etc.

Auto-detected when sys.platform == 'win32'. No UAC elevation required for SendInput.

Also verify xdotool fallback is gracefully handled (xdotool not available on Windows — pyautogui is the fallback there).

Add a `Win32Backend` to ActionExecutor using `ctypes` + `SendInput` (no external dependency beyond `pywin32` which is pip-installable). ```python import ctypes INPUT_MOUSE = 0 MOUSEEVENTF_LEFTDOWN = 0x0002 # etc. ``` Auto-detected when `sys.platform == 'win32'`. No UAC elevation required for SendInput. Also verify xdotool fallback is gracefully handled (xdotool not available on Windows — pyautogui is the fallback there).
pyr0ball added this to the Phase A — Camera-Only milestone 2026-04-26 21:43:44 -07:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/raven#8
No description provided.