SoFunction
Updated on 2025-04-12

Detailed explanation of Easy Language Turn off Monitor API

'Switch off the monitor

SendMessageA (take window handle (), #WM_SYSCOMMAND, #SC_MONITORPOWER, 2)

'Open the monitor

SendMessageA (take window handle (), #WM_SYSCOMMAND, #SC_MONITORPOWER, -1)

The above is the relevant handle code for turning off the monitor and turning on the monitor in Easy Language. Thank you for your support.