Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5847 > unrolled thread
| Started by | Jack Krieger <jack.krieger@gmail.com> |
|---|---|
| First post | 2011-05-20 02:54 -0700 |
| Last post | 2011-05-20 02:54 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Re: turn monitor off and on Jack Krieger <jack.krieger@gmail.com> - 2011-05-20 02:54 -0700
| From | Jack Krieger <jack.krieger@gmail.com> |
|---|---|
| Date | 2011-05-20 02:54 -0700 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.python
csiph-web