AutoHotKey: This Rocks

Just the urls, ma'am.
Post Reply
VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

AutoHotKey: This Rocks

Post by VLSmooth »

While searching for a keyboard shortcut to immediately turn off my monitor from bed, I found AutoHotKey.

wiki link: http://en.wikipedia.org/wiki/AutoHotkey (better summary here)
official site: http://www.autohotkey.com/

For any fan of keyboard shortcuts on Windows, this is simply awesome.

Regarding the monitor turn off issue, the relevant script is

Code: Select all

#m:: ; Win+O hotkey that turns off the monitor.
Sleep 1000 ; Give user a chance to release keys (in case their release would wake up the monitor again).
; Turn Monitor Off:
SendMessage, 0x112, 0xF170, 2,, Program Manager ; 0x112 is WM_SYSCOMMAND, 0xF170 is SC_MONITORPOWER.
; Note for the above: Use -1 in place of 2 to turn the monitor on.
; Use 1 in place of 2 to activate the monitor's low-power mode.
return
I found it from on
http://greasypc.blogspot.com/2008/01/my ... -text.html

Post Reply