r/programmingrequests • u/Misaria • Feb 11 '20
solved [Request] App that shuts off the monitor.
I used to have one a couple of years ago but it got flagged with malware, I think the app was called something as simple as ScreenOff; it was just a single .exe file.
I'm on Win 10, 64-bit.
There's probably a simple command you could put in a .bat or something but I have no clue.
Just need something simple that when you click it, the screen turns off, preferably with a slight delay so you don't accidentally turn it on when moving the mouse immediately after; that's how the other app worked.
1
Upvotes
3
u/Daanoking Feb 11 '20
Do you mean actually turning the monitor off or going to a black sleep screen?
2
u/VernonPresident Feb 11 '20
Just played around with code from : https://stackoverflow.com/questions/713498/turn-on-off-monitor
Code and binary to try out at https://github.com/reubenmallaby/screenoff