The story of this app is very simple: I had a keyboard with dedicated Sleep key, that I used for turning my display off. Not locking, just shutting down the display.
After a while, I replaced my keyboard with a newer one, with lots of cool features, and programmable keys (CORSAIR K55 RGB PRO XT).
However, it turned out that it is not possible to make one of the keys function like dedicated Sleep key.
This program sends WM_SYSCOMMAND WinAPI message with SC_MONITORPOWER, 2
params.
This message shuts the display off.
Normally, Windows should turn the monitor on if the user moves the mouse or presses any key. However, this program does nothing to turn the display back on; it's up to the user.
src-console
contains console appsrc-winforms
contains WinForms app
It seems that Corsair iCUE software does not allow to assign a console app to the custom keys (sic!). Please use WinForms version with iCUE.