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


Groups > comp.lang.python > #5847

Re: turn monitor off and on

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jack.krieger@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.137
X-Spam-Level *
X-Spam-Evidence '*H*': 0.73; '*S*': 0.00; 'def': 0.12; 'message- id:@glegroupsg2000goo.googlegroups.com': 0.16; 'reply- to:addr:comp.lang.python': 0.16; 'to:addr:comp.lang.python': 0.16; 'cc:addr:python-list': 0.17; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'code': 0.24; 'received:209.85.220': 0.25; 'monitor': 0.26; 'cc:addr:python.org': 0.30; 'programm': 0.30; 'opinion': 0.32; 'does': 0.33; 'header:User-Agent:1': 0.35; 'message.': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:googlegroups.com': 0.63; 'due': 0.67; 'skip:w 40': 0.67; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'reply-to:addr:googlegroups.com': 0.73; 'broadcasting': 0.91
Newsgroups comp.lang.python
Date Fri, 20 May 2011 02:54:43 -0700 (PDT)
In-Reply-To <mailman.1537.1305353327.9059.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=82.207.126.105; posting-account=qQyH3QoAAACzeHI8Q_aYZd9dEg4oTrAF
User-Agent G2/1.0
X-Google-Web-Client true
MIME-Version 1.0
Subject Re: turn monitor off and on
From Jack Krieger <jack.krieger@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To comp.lang.python@googlegroups.com
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1835.1305885293.9059.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 82.94.164.166
X-Trace 1305885293 news.xs4all.nl 49044 [::ffff:82.94.164.166]:36412
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5847

Show key headers only | View raw


> 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


Thread

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

csiph-web