; Initiate Script
Main()
Func Main()
; Infinite loop
While 1
If CheckInternetConnection() == true Then
; Internet Connection is true
; Perform mouse click
MouseClick("left")
Else
; Internet Connection is false
; So no worries
EndIf
; Sleep for 9 minutes
Sleep(60000 *9)
WEnd
EndFunc
; The function checks if currently is a internet connection
Func CheckInternetConnection()
Local $Connected = false
$ping = Ping("www.google.com")
If $ping > 0 Then
$Connected = true
EndIf
Return $Connected
EndFunc