Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Online Check


  • Please log in to reply
No replies to this topic
kapege.de
  • Members
  • 192 posts
  • Last active: Jan 16 2012 12:34 PM
  • Joined: 07 Feb 2005
This little program is for the autostart-section. It tries to load a site and decides if you are already online or not, because (for me) sometimes it lasts a while until the connection is stable. So my Firefox starts and loads the startpages only until there's a connection.
#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"
    ExitApp
  }
return

Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)