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.
- Host: GitHub
- URL: https://github.com/lucascorpion/keyrecorder
- Owner: LucaScorpion
- Created: 2021-04-11T19:22:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T19:41:19.000Z (about 5 years ago)
- Last Synced: 2025-07-15T13:29:04.667Z (11 months ago)
- Topics: keyboard-input, mouse-input, scripting, windows
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```