tags:

views:

141

answers:

1

How can I send a monitor into/out-of a different power state (like sleep)?

+1  A: 

After looking at this article:

http://vbnet.mvps.org/index.html?code/screen/scmonitorpower.htm

It appears you need to send a SendMessage call similar to:

SendMessage(Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal MONITOR_OFF)

Although, that is a VB version. What you're really after is the WinAPI call, I'm sure you can convert this bit to however you invoke WinAPI calls in Python. I hope this helps.

BobbyShaftoe