Created
May 13, 2010 21:58
-
-
Save lukescammell/400517 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;------------------------------------------------------------------------------- | |
; Auto-Reload AutoHotkey when .ahk file is saved | |
; http://prxbx.com/forums/showthread.php?tid=1181 | |
; Modified 2009-12-09 11:32:17 by Luke Scammell - luke {at} scammell [dot] co (.) uk | |
; Modified to match any window with .ahk in the title, meaning it will update other scripts as well and from other programs like Notepad++ :) | |
~^s:: | |
SetTitleMatchMode, 2 | |
IfWinActive, .ahk | |
{ | |
Send, ^s | |
SplashTextOn,,,Updated script, | |
Sleep,500 | |
SplashTextOff | |
Reload | |
} | |
else | |
Send, ^s | |
return | |
;------------------------------------------------------------------------------/ |
This doesn't work anymore with ahk2. :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanksssss!!!