Skip to content

Instantly share code, notes, and snippets.

@lukescammell
Created May 13, 2010 21:58
Show Gist options
  • Save lukescammell/400517 to your computer and use it in GitHub Desktop.
Save lukescammell/400517 to your computer and use it in GitHub Desktop.
;-------------------------------------------------------------------------------
; 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
;------------------------------------------------------------------------------/
@johntheactualman
Copy link

Thanksssss!!!

@Julia-Linsmayer
Copy link

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