Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5847
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2011-05-20 02:54 -0700 |
| Subject | Re: turn monitor off and on |
| From | Jack Krieger <jack.krieger@gmail.com> |
| Message-ID | <mailman.1835.1305885293.9059.python-list@python.org> (permalink) |
> 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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: turn monitor off and on Jack Krieger <jack.krieger@gmail.com> - 2011-05-20 02:54 -0700
csiph-web