Keyboard-Buffer in Windows

748 views Asked by At

In Linux it is possible to read keystrokes directly from a device file. The device file is located under / dev / input / event *. Is there a similar possibility under Windows?

1

There are 1 answers

0
Thomas Dickey On

Windows devices are not organized that way (most are specialized rather than generic). There are legacy names such as CON which have no associated path but can be referenced in a batch file, while the newer ones (which also can be referenced by name) generally require specialized drivers.

For more information on the legacy names:

The place to start with newer devices names is in the Windows Driver Kit. In particular DevCon.exe shows (and manipulates) these.

Of course, you can manipulate devices with PowerShell: