Created
August 23, 2011 20:31
-
-
Save agross/1166431 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
; 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