A python program created to automate the mouse and keyboard.
- Once you have python installed, install the required modules using
pip
. - Download the
autoinput.py
in releases. - Place the python file in an empty directory.
- Run the
autoinput.py
using your chosen terminal.
usage: autoinput.py [-h] [-v] [--set-record-dir SET_RECORD_DIR] {record,play} ...
positional arguments:
{record,play}
record record input
play play a record
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--set-record-dir SET_RECORD_DIR
set the directory to store and look for records
Record your input using the record make <record-name> -mk
command:
autoinput record make "test" -mk
This command creates a record named test with both mouse and keyboard inputs enabled.
You will then encounter this prompt:
[READY] Press 'ctrl + shift' to start recording or press 'ctrl + z' to cancel
Press ctrl + shift
to start recording. To pause, press ctrl + alt
, and to stop, press ctrl + z
.
Hotkeys are configurable with the config set
command.
Play saved records using the play command:
autoinput play "test"
This command plays the record named test
.
To view saved records, use the command record list
or play -a
.
After entering the play
command, you will see this prompt:
[READY] Press 'ctrl + shift' to start playback or press 'ctrl + z' to cancel
Press ctrl + shift
to start playback. To pause, press ctrl + alt
, and to stop, press ctrl + z
.
Hotkeys are configurable with the config set
command.
Edit config options in the config.json
file generated where autoinput.py
resides.
Alternatively, use the config set <config-option> <value>
command:
autoinput config set "startHotkey" "ctrl + space"
This command sets the start hotkey to ctrl + space
.