Skip to content

MedusaTea/windows-input-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Summary

A simple Flask-based API that simulates keyboard and mouse inputs to control a Windows game window remotely.

Features

  • 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

⚠️ Heads up

This is from a personal project and is tweaked depending on the game i'm messing with at the time.

It's a great starting point and reference, not expected to handle every use case, but not hard to update and tweak as needed.

Requirements

  • Windows OS
  • Python 3.8+
  • The following Python packages:
    • Flask
    • pywin32
    • pynput

Install dependencies:

pip install Flask pywin32 pynput

Run

python ./input_server.py

About

A simple Flask-based API that simulates keyboard and mouse inputs to control a Windows game window remotely.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages