aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-08-24 23:23:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-08-24 23:23:08 +0200
commit72460e076518f1721edf6ee1f81c3d32737b87cf (patch)
tree1dd1fd89e404c1e6f7c8e89c29bc38a2376dd224
parent700493518268f65e95ad08e230ecfe2b9df8949a (diff)
downloadahk-72460e076518f1721edf6ee1f81c3d32737b87cf.tar.gz
scripts: Add hotkey to turn off monitor
-rw-r--r--scripts.ahk5
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