Page 1 of 1

Run Ping on program load

Posted: Sat Apr 05, 2014 12:36 pm
by ChrisM
Hi All,

I need some help, im trying to have a box on the screen thats pinging google every 1 minute and the box is red if there is no response and green if there is a reply, I want this to load at start up without pressing any buttons, basically trying to monitor if the internet goes down.

Any ideas appreciated

Re: Run Ping on program load

Posted: Sat Apr 05, 2014 1:25 pm
by Dixie
maybe, something like

Code: Select all

on openStack
   checkGoogle
end openStack

on checkGoogle
   put "http://www.google.com" into theURL
   put URL theURL into temp
   
   if temp is empty then
      put "Oops... no connection !"
   else
      put "It's here !"
   end if
   
   send "checkGoogle" to me in 60 seconds
end checkGoogle