Issue with monitor off

anteqqq1 <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <CADtqS8+-sS62mfHCSj0JYrFXNTPNu+jprH34OhtJ0g4h5iNfdw@mail.gmail.com>
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 :)
Greetings ,
Tony

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.