An open API service indexing awesome lists of open source software.

https://github.com/lucascorpion/keyrecorder

Record keyboard and mouse inputs for Windows.
https://github.com/lucascorpion/keyrecorder

keyboard-input mouse-input scripting windows

Last synced: 18 days ago
JSON representation

Record keyboard and mouse inputs for Windows.

Awesome Lists containing this project

README

          

# keyRecorder

A tool that records keystrokes, and outputs them as a [keyScripter](https://github.com/LucaScorpion/keyScripter) script. It uses the Win32 [GetAsyncKeyState](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getasynckeystate) API to read key states from the OS.

## Usage

Basic usage:

```
keyRecorder output.txt
```

By default, it will record keys until the escape key is pressed. To change this to a different key use the `-s` option with a [virtual key code](https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes). For example, to use the backspace key:

```
keyRecorder output.txt -s 8
```

You can ignore certain keys by passing the `-i` option with a virtual key code. This argument can be specified multiple times. For example, to ignore left mouse clicks and enter:

```
keyRecorder output.txt -i 1 -i 13
```