Code: Select all
; Description: Get a TrayTip whenever your script is reloaded
; Permalink: https://autohotkey.com/boards/viewtopic.php?t=43865
; Author: aph
; Version: 0.1
FileGetAttrib, attribs, %A_ScriptFullPath%
if (attribs="A") {
FileSetAttrib, -A, %A_ScriptFullPath%
TrayTip, Reloaded script, %A_ScriptFullPath%,, 1
}
OnExit, ExitSub
Return
ExitSub:
if (A_ExitReason="Reload") {
FileSetAttrib, +A, %A_ScriptFullPath%
}
ExitApp
Code: Select all
; Alt+Shift+R to reload AutoHotkey script
+!r::Reload