Re: Issue with monitor off
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
anteqqq1 wrote: > Hello there, I have a question concerning Win32 usage. The idea is > that after operations in python i want to turn my monitor off but when > i use Win32 command win32gui.SendMessage(win 32con.HWND_BROADCAST, > win32con.WM_SYSCOMMAND, win32con.SC_MONITORPOWER , 2) the monitor not > only goin off state but the machine is also going sleep mode . My > question is : Is there any way to prevent machine going to sleep ? The > only thing i need is to turn monitor off :) The operating system can do this for you automatically, in the "Power & Sleep" control panel page. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32
smime.p7s
(application/pkcs7-signature, 3.3 KB) - not displayed