How to keep display off?

111 views Asked by At

I'm trying to write a program in C++Builder 10.2 that turns off the display (by hotkey) via SendMessage(handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2); I need the display to remain turned off while other keys are being typed, and then turn it back on by another hotkey. Is this possible?

0

There are 0 answers