Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

Power down the monitors

$
0
0
I've been doing this for ages in a one-line C program.

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

Viewing all articles
Browse latest Browse all 1683

Trending Articles