Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
273 B
7
Indexable
Never
    // https://www.youtube.com/watch?v=EHbdIWsQ3OU&list=PLH3y3SWteZd1aE_-tdZWS1aDx9kwngta4&index=2
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2);
    Sleep(1000);
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)-1);