Advertisement
Java_Volume1 Windows API Call/ Explanation #97961

How to turn the monitor on/off

With this code you can turn on or off the monitor ;)

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'Turn Monitor on: ->
 SendMessage Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal 0&
'Turn Monitor off: ->
 SendMessage Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal -1&
Original Comments (3)
Recovered from Wayback Machine