Guegs

Untitled

Dec 21st, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Turn off screen by pressing Win + Esc
  2.  
  3. #NoTrayIcon ; Does what it says on the tin.
  4.  
  5. Sleep 1000 ; Give user a chance to release key incase their release would wake up monitor again.
  6.  
  7. #Escape::SendMessage 0x112, 0xF170, 2,, Program Manager ; 0x112 is WM_SYSCOMMAND, 0xF170 is SC_MONITORPOWER.
Advertisement
Add Comment
Please, Sign In to add comment