SSVK

Super Simple Virtual Keypress : A Windows/Linux solution to generate system-wide keyboard events.

View on GitHub

SSVK

Super Simple Virtual Keypress : A Windows/Linux solution to generate system-wide keyboard events.

This library permit to send fake keypresses to the desktop. This litterally simulate if somebody was pressing keys on a virtual keyboard using OS availlable API.

This library provide a single interface to do it in multiple systems.

This is a toy project, and it’s probably not implemented in the most efficient manner. (for instance, the “universal keycodes” used by the library are stored as strings, for easy manipulations, and values are put in a bunch of defines).

Please note that when initializing a KeySender object, a table (sotred as an std::unordered_map) that serve to translate keycodes to your own code is created. You don’t need multiple objects of this type around, it will just be a waste.

Note that you are sending key press without any way to know by code if they are actually working. This is intended to write really simple automation code, but not reliable/sensible code.

Do not be Tom Scott, do not use janky open source softawre to deploy parachutes. :wink:

Dependencies:

Building

Installing and using