How to turn off display using Python?

Viewed 49

I have tried this:

def ScreenOff():
      return ctypes.windll.user32.SendMessageW(65535, 274, 61808, 2)

but it doesn't work... any help?

0 Answers
Related