Page 1 of 1

[OK] Turn off the screen

Posted: Wed Sep 29, 2021 10:26 pm
by ar-s
Hey.

I'd like to turn off the screen with a simple launch app.
I try to use this API. That is working but the app still do not exit.
Any idea ?

Code: Select all

#MONITOR_OFF = 2
SendMessage_(#HWND_BROADCAST, #WM_SYSCOMMAND,#SC_MONITORPOWER, #MONITOR_OFF)

Re: Turn off the screen

Posted: Thu Sep 30, 2021 5:30 am
by Itsy Bitsy
Hi Ar-s

PostMessage_ ?

Re: Turn off the screen

Posted: Thu Sep 30, 2021 8:51 am
by ar-s
Yep !
Thanks 8)