This is a personal project that may be updated as needed
It should be used as a starting point and reference, not expected to handle every use case.
A simple Flask-based API that simulates keyboard and mouse inputs to control a Windows game window remotely.
- Programmatically sends keypresses and mouse clicks to a game window
- REST API interface for automation or remote control
- Supports both single key presses and toggle (hold/release) behavior
- Automatically focuses the game window before sending input
- Windows OS
- Python 3.8+
- The following Python packages:
Flask
pywin32
pynput
pip install Flask pywin32 pynput
python ./input_server.py