- May
- 13,802
- 211
I've been doing this for ages in a one-line C program.
You can do the same with TCC's @WINAPI. Mouse\keyboard powers them up again.
Code:
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
You can do the same with TCC's @WINAPI. Mouse\keyboard powers them up again.
Code:
echo %@winapi[user32,SendMessage,65535,274,61808,2] > nul