diff options
author | John Ankarström <john@ankarstrom.se> | 2021-08-24 23:23:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-08-24 23:23:08 +0200 |
commit | 72460e076518f1721edf6ee1f81c3d32737b87cf (patch) | |
tree | 1dd1fd89e404c1e6f7c8e89c29bc38a2376dd224 | |
parent | 700493518268f65e95ad08e230ecfe2b9df8949a (diff) | |
download | ahk-72460e076518f1721edf6ee1f81c3d32737b87cf.tar.gz |
scripts: Add hotkey to turn off monitor
-rw-r--r-- | scripts.ahk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts.ahk b/scripts.ahk index cb2d0f2..1cde37d 100644 --- a/scripts.ahk +++ b/scripts.ahk @@ -82,6 +82,11 @@ Sleep, 600 DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0) return +<^>!^F12 Up:: +Sleep, 600 +SendMessage,0x112,0xF170,2,,Program Manager ; turn off monitor +return + <^>!F12 Up:: Sleep, 600 Run, %A_WinDir%\system32\Mystify.scr /s ; start screen saver |