Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5847 > unrolled thread

Re: turn monitor off and on

Started byJack Krieger <jack.krieger@gmail.com>
First post2011-05-20 02:54 -0700
Last post2011-05-20 02:54 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: turn monitor off and on Jack Krieger <jack.krieger@gmail.com> - 2011-05-20 02:54 -0700

#5847 — Re: turn monitor off and on

FromJack Krieger <jack.krieger@gmail.com>
Date2011-05-20 02:54 -0700
SubjectRe: turn monitor off and on
Message-ID<mailman.1835.1305885293.9059.python-list@python.org>
> def turnOffMonitor():
>   SC_MONITORPOWER = 0xF170
>   win32gui.SendMessage(win32con.HWND_BROADCAST,
> win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2)

This code does not return control to you, so programm still locked. In my opinion it due broadcasting message. But I do not know how to send message to monitor directly.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web