Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Power down the monitors

May
13,802
211
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
 
Way more compact than using "Nircmd monitor off"!!

Alas, i can't do this anymore. Messes up HDMI chain and whether whole-house audio works. Kinda sucks for the environment but hey, I downloaded a black.jpg to put in the background when the screen is locked. It ALMOST looks off, haha.

That's super-duper cool that all the power of NirCMD was just sitting there in the echo command :D
 
Back
Top