Skip to content

Commit

Permalink
Cleanup sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jan 29, 2023
1 parent 95f23a0 commit 3fb41b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions AutoHotkey64.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ CapsLock & SPACE::WinSetAlwaysOnTop(-1, "A")

;------------------------------------------------
; caps lock + 1 => sleep screen
CapsLock & 1::{
Sleep 200 ; if you use this with a hotkey, not sleeping will make it so your keyboard input wakes up the monitor immediately
CapsLock & 1 Up::{
Sleep 900 ; if you use this with a hotkey, not sleeping will make it so your keyboard input (lifting your fingers from the keyboard after pressing the hotkey) wakes up the monitor immediately
SendMessage(0x112, 0xF170, 2,, "Program Manager") ; send the monitor into off mode
; unsure why, but sending the second message makes f.lux activate correctly when screen wakes up. otherwise i have to alt-tab for f.lux to work properly
Sleep 2000
SendMessage(0x112, 0xF170, 2,, "Program Manager")
}


Expand Down

0 comments on commit 3fb41b6

Please sign in to comment.