Skip to content

Instantly share code, notes, and snippets.

@agross
Created August 23, 2011 20:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agross/1166431 to your computer and use it in GitHub Desktop.
Save agross/1166431 to your computer and use it in GitHub Desktop.
; Make script persistent.
#Persistent
; Recommended for performance and compatibility with future AutoHotkey releases.
#NoEnv
; Recommended for new scripts due to its superior speed and reliability.
SendMode Input
#SingleInstance force
Menu Tray, Tip, Skype Automation
Menu Tray, NoIcon
; Reloads this script if the files changes.
FileGetTime LastWriteTime, %A_ScriptFullPath%
SetTimer ScriptUpdated, 10000
Goto, Detect
ScriptUpdated:
FileGetTime LastWriteTimeNow, %A_ScriptFullPath%
if (LastWriteTimeNow > LastWriteTime)
{
SplashTextOn, , , Script Updated: %A_ScriptName%,
Sleep 500
Reload
}
Return
Detect:
WinWait, Skype Home
WinClose
Goto, Detect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment