Check for Online
#persistent
Gosub, TestOnline
SetTimer, TestOnline, 30000 ; checks every 30 seconds
return
TestOnline:
test = c:\test.txt
FileDelete, %test%
URLDownloadToFile, http://www.autohotkey.com/, %test% ; insert a neutral URL instead of AHK's
if FileExist(Test)
{
FileDelete, %test%
run, "C:\Programme\Mozilla Firefox\firefox.exe"
run, "C:\Programme\Mozilla Thunderbird\thunderbird.exe"
0 comments:
Post a Comment