gitmyhub

KeymouseGo

Python ★ 10k updated 14d ago

类似按键精灵的鼠标键盘录制和自动化操作 模拟点击和键入 | automate mouse clicks and keyboard input

A desktop macro recorder that captures your mouse clicks and keyboard actions then replays them automatically, so you can repeat any task as many times as you want without writing code.

Pythonsetup: easycomplexity 2/5

KeymouseGo is a desktop automation tool that records what you do with your mouse and keyboard, then plays it back for you automatically. Think of it as a simple macro recorder: you press Record, do a task on your computer (clicking buttons, typing text, navigating menus), press Stop, and from then on the program can repeat those exact same steps as many times as you want.

The primary use case is repetitive work. If you find yourself doing the same sequence of actions over and over, KeymouseGo can take over after you do it once. You can set it to repeat a fixed number of times or loop indefinitely. The default keyboard shortcuts are F6 to start a replay and F9 to stop it, though you can customize these. It works on Windows, Linux, and macOS.

The tool records mouse clicks and keyboard presses but does not record mouse movement paths between clicks. Each recording session is saved as a small script file in JSON format inside a scripts folder. These files can be edited by hand if you want to fine-tune the timing or adjust coordinates, and the format is documented in the README. You can also run scripts directly from the command line without opening the graphical interface.

KeymouseGo is written in Python and comes packaged as a standalone executable for users who do not have Python installed. Those who do have Python can install the dependencies and run or build it from source. On Mac and Linux, some systems may require running the tool with administrator permissions for it to capture all input events correctly.

Where it fits