Turn Monitor off with python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cruddpuppet
    New Member
    • Mar 2007
    • 2

    #1

    Turn Monitor off with python

    My school computer has monitor issues (turns off every 2 minutes) and I have to constantly turn it back on. I don't have the software or the privelages to install the software needed to scan for viruses, and there are no more extra computers in class, so I'm forced to use this one. I was wondering if there was a way to turn the monitor off/on with python. I know how to set the switch (use pyHook, check if the 'esc' button is pressed, if it is, turn the monitor on) but I don't really know how to turn the monitor off.


    Some sources tell me to look into ctypes and do some c functions and whatnot, while other sources tell me to use python win32 modules, but I really don't knwo where to go after that.
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    Originally posted by cruddpuppet
    My school computer has monitor issues (turns off every 2 minutes) and I have to constantly turn it back on. I don't have the software or the privelages to install the software needed to scan for viruses, and there are no more extra computers in class, so I'm forced to use this one. I was wondering if there was a way to turn the monitor off/on with python. I know how to set the switch (use pyHook, check if the 'esc' button is pressed, if it is, turn the monitor on) but I don't really know how to turn the monitor off.


    Some sources tell me to look into ctypes and do some c functions and whatnot, while other sources tell me to use python win32 modules, but I really don't knwo where to go after that.
    i suspect its the power management. you should consult your school administrator about this

    Comment

    • cruddpuppet
      New Member
      • Mar 2007
      • 2

      #3
      I have, they said they have to wait for some guy to come, and until then, they can't do anything about it.

      Comment

      Working...