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, t...@probo.com
Providenza & Boekelheide, Inc.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to