#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=SupervisionNAGLeo.ico #AutoIt3Wrapper_Outfile_x64=Releases\NAG.exe #AutoIt3Wrapper_Res_Comment=NAGLeo - Supervision Embarquée Portable #AutoIt3Wrapper_Res_Description=NAGLeo - Supervision Embarquée Portable #AutoIt3Wrapper_Res_Fileversion=1.0.0.18 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_ProductName=NAGLeo #AutoIt3Wrapper_Res_ProductVersion=1.0.0.0 #AutoIt3Wrapper_Res_CompanyName=Tyleo Softwares #AutoIt3Wrapper_Res_LegalCopyright=Tyleo Softwares #AutoIt3Wrapper_Res_LegalTradeMarks=Tyleo Softwares #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include #include #Region ### START Koda GUI section ### Form=H:\Supervision\Form1.kxf if FileExists(@ScriptDir & "\NAG_Stop.exe") Then Run("NAG_Stop.exe") Else MsgBox(0+16,"Error","This software is incomplete. Recheck your Download source.") Exit(1) Endif Global $Supervision = GUICreate("Supervision NAG-Leo", 1148, 657, 191, 145) GUISetBkColor(0xFFFFFF,$Supervision) GUISetFont(9, 900,"", "Arial", $Supervision) $defaulthost = "disabled" $defaulttimeout = "2000" $config = @ScriptDir & "\Hosts.ini" $timeout = @ScriptDir & "\Timeout.ini" If FileExists($timeout) Then ; Already Configured Else IniWrite($timeout,"Config TimeOut NagLeo","TimeOut(ms)",$defaulttimeout) Endif $tm = IniRead($timeout,"Config TimeOut NagLeo","TimeOut(ms)",$defaulttimeout) if FileExists($config) Then ; Already Configured Else IniWrite($config,"Hosts NagLeo","Host-1",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-2",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-3",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-4",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-5",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-6",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-7",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-8",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-9",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-10",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-11",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-12",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-13",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-14",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-15",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-16",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-17",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-18",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-19",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-20",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-21",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-22",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-23",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-24",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-25",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-26",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-27",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-28",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-29",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-30",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-31",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-32",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-33",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-34",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-35",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-36",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-37",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-38",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-39",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-40",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-41",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-42",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-43",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-44",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-45",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-46",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-47",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-48",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-49",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-50",$defaulthost) IniWrite($config,"Hosts NagLeo","Host-51",$defaulthost) Endif ; First init $c1 = IniRead($config,"Hosts NagLeo","Host-1",$defaulthost) $c2 = IniRead($config,"Hosts NagLeo","Host-2",$defaulthost) $c3 = IniRead($config,"Hosts NagLeo","Host-3",$defaulthost) $c4 = IniRead($config,"Hosts NagLeo","Host-4",$defaulthost) $c5 = IniRead($config,"Hosts NagLeo","Host-5",$defaulthost) $c6 = IniRead($config,"Hosts NagLeo","Host-6",$defaulthost) $c7 = IniRead($config,"Hosts NagLeo","Host-7",$defaulthost) $c8 = IniRead($config,"Hosts NagLeo","Host-8",$defaulthost) $c9 = IniRead($config,"Hosts NagLeo","Host-9",$defaulthost) $c10 = IniRead($config,"Hosts NagLeo","Host-10",$defaulthost) $c11 = IniRead($config,"Hosts NagLeo","Host-11",$defaulthost) $c12 = IniRead($config,"Hosts NagLeo","Host-12",$defaulthost) $c13 = IniRead($config,"Hosts NagLeo","Host-13",$defaulthost) $c14 = IniRead($config,"Hosts NagLeo","Host-14",$defaulthost) $c15 = IniRead($config,"Hosts NagLeo","Host-15",$defaulthost) $c16 = IniRead($config,"Hosts NagLeo","Host-16",$defaulthost) $c17 = IniRead($config,"Hosts NagLeo","Host-17",$defaulthost) $c18 = IniRead($config,"Hosts NagLeo","Host-18",$defaulthost) $c19 = IniRead($config,"Hosts NagLeo","Host-19",$defaulthost) $c20 = IniRead($config,"Hosts NagLeo","Host-20",$defaulthost) $c21 = IniRead($config,"Hosts NagLeo","Host-21",$defaulthost) $c22 = IniRead($config,"Hosts NagLeo","Host-22",$defaulthost) $c23 = IniRead($config,"Hosts NagLeo","Host-23",$defaulthost) $c24 = IniRead($config,"Hosts NagLeo","Host-24",$defaulthost) $c25 = IniRead($config,"Hosts NagLeo","Host-25",$defaulthost) $c26 = IniRead($config,"Hosts NagLeo","Host-26",$defaulthost) $c27 = IniRead($config,"Hosts NagLeo","Host-27",$defaulthost) $c28 = IniRead($config,"Hosts NagLeo","Host-28",$defaulthost) $c29 = IniRead($config,"Hosts NagLeo","Host-29",$defaulthost) $c30 = IniRead($config,"Hosts NagLeo","Host-30",$defaulthost) $c31 = IniRead($config,"Hosts NagLeo","Host-31",$defaulthost) $c32 = IniRead($config,"Hosts NagLeo","Host-32",$defaulthost) $c33 = IniRead($config,"Hosts NagLeo","Host-33",$defaulthost) $c34 = IniRead($config,"Hosts NagLeo","Host-34",$defaulthost) $c35 = IniRead($config,"Hosts NagLeo","Host-35",$defaulthost) $c36 = IniRead($config,"Hosts NagLeo","Host-36",$defaulthost) $c37 = IniRead($config,"Hosts NagLeo","Host-37",$defaulthost) $c38 = IniRead($config,"Hosts NagLeo","Host-38",$defaulthost) $c39 = IniRead($config,"Hosts NagLeo","Host-39",$defaulthost) $c40 = IniRead($config,"Hosts NagLeo","Host-40",$defaulthost) $c41 = IniRead($config,"Hosts NagLeo","Host-41",$defaulthost) $c42 = IniRead($config,"Hosts NagLeo","Host-42",$defaulthost) $c43 = IniRead($config,"Hosts NagLeo","Host-43",$defaulthost) $c44 = IniRead($config,"Hosts NagLeo","Host-44",$defaulthost) $c45 = IniRead($config,"Hosts NagLeo","Host-45",$defaulthost) $c46 = IniRead($config,"Hosts NagLeo","Host-46",$defaulthost) $c47 = IniRead($config,"Hosts NagLeo","Host-47",$defaulthost) $c48 = IniRead($config,"Hosts NagLeo","Host-48",$defaulthost) $c49 = IniRead($config,"Hosts NagLeo","Host-49",$defaulthost) $c50 = IniRead($config,"Hosts NagLeo","Host-50",$defaulthost) $c51 = IniRead($config,"Hosts NagLeo","Host-51",$defaulthost) ; Menu Global $Rclick_Files = GUICtrlCreateContextMenu() Global $Rclick_Ver = GUICtrlCreateMenuItem("Version",$Rclick_Files) Global $Rclick_Dev = GUICtrlCreateMenuItem("Developer",$Rclick_Files) ; Zone 1 ; States Global $State1 = GUICtrlCreateButton("NOT DEFINED", 8, 16, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State2 = GUICtrlCreateButton("NOT DEFINED", 8, 40, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State3 = GUICtrlCreateButton("NOT DEFINED", 8, 64, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State4 = GUICtrlCreateButton("NOT DEFINED", 8, 88, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State5 = GUICtrlCreateButton("NOT DEFINED", 8, 112, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State6 = GUICtrlCreateButton("NOT DEFINED", 8, 136, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State7 = GUICtrlCreateButton("NOT DEFINED", 8, 160, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State8 = GUICtrlCreateButton("NOT DEFINED", 8, 184, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State9 = GUICtrlCreateButton("NOT DEFINED", 8, 208, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State10 = GUICtrlCreateButton("NOT DEFINED", 8, 232, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State11 = GUICtrlCreateButton("NOT DEFINED", 8, 256, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State12 = GUICtrlCreateButton("NOT DEFINED", 8, 280, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State13 = GUICtrlCreateButton("NOT DEFINED", 8, 304, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State14 = GUICtrlCreateButton("NOT DEFINED", 8, 328, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State15 = GUICtrlCreateButton("NOT DEFINED", 8, 352, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State16 = GUICtrlCreateButton("NOT DEFINED", 8, 376, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State17 = GUICtrlCreateButton("NOT DEFINED", 8, 400, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State18 = GUICtrlCreateButton("NOT DEFINED", 8, 424, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State19 = GUICtrlCreateButton("NOT DEFINED", 8, 448, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State20 = GUICtrlCreateButton("NOT DEFINED", 8, 472, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State21 = GUICtrlCreateButton("NOT DEFINED", 8, 496, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State22 = GUICtrlCreateButton("NOT DEFINED", 8, 520, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State23 = GUICtrlCreateButton("NOT DEFINED", 8, 544, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State24 = GUICtrlCreateButton("NOT DEFINED", 8, 568, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State25 = GUICtrlCreateButton("NOT DEFINED", 8, 592, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State26 = GUICtrlCreateButton("NOT DEFINED", 8, 616, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) ; Names Global $Name1 = GUICtrlCreateButton($c1, 137, 16, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name2 = GUICtrlCreateButton($c2, 137, 40, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name3 = GUICtrlCreateButton($c3, 137, 64, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name4 = GUICtrlCreateButton($c4, 137, 88, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name5 = GUICtrlCreateButton($c5, 137, 112, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name6 = GUICtrlCreateButton($c6, 137, 136, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name7 = GUICtrlCreateButton($c7, 137, 160, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name8 = GUICtrlCreateButton($c8, 137, 184, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name9 = GUICtrlCreateButton($c9, 137, 208, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name10 = GUICtrlCreateButton($c10, 137, 232, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name11 = GUICtrlCreateButton($c11, 137, 256, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name12 = GUICtrlCreateButton($c12, 137, 280, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name13 = GUICtrlCreateButton($c13, 137, 304, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name14 = GUICtrlCreateButton($c14, 137, 328, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name15 = GUICtrlCreateButton($c15, 137, 352, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name16 = GUICtrlCreateButton($c16, 137, 376, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name17 = GUICtrlCreateButton($c17, 137, 400, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name18 = GUICtrlCreateButton($c18, 137, 424, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name19 = GUICtrlCreateButton($c19, 137, 448, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name20 = GUICtrlCreateButton($c20, 137, 472, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name21 = GUICtrlCreateButton($c21, 137, 496, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name22 = GUICtrlCreateButton($c22, 137, 520, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name23 = GUICtrlCreateButton($c23, 137, 544, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name24 = GUICtrlCreateButton($c24, 137, 568, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name25 = GUICtrlCreateButton($c25, 137, 592, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name26 = GUICtrlCreateButton($c26, 137, 616, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) ; Zone 2 ; States Global $State27 = GUICtrlCreateButton("NOT DEFINED", 584, 16, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State28 = GUICtrlCreateButton("NOT DEFINED", 584, 40, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State29 = GUICtrlCreateButton("NOT DEFINED", 584, 64, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State30 = GUICtrlCreateButton("NOT DEFINED", 584, 88, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State31 = GUICtrlCreateButton("NOT DEFINED", 584, 112, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State32 = GUICtrlCreateButton("NOT DEFINED", 584, 136, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State33 = GUICtrlCreateButton("NOT DEFINED", 584, 160, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State34 = GUICtrlCreateButton("NOT DEFINED", 584, 184, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State35 = GUICtrlCreateButton("NOT DEFINED", 584, 208, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State36 = GUICtrlCreateButton("NOT DEFINED", 584, 232, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State37 = GUICtrlCreateButton("NOT DEFINED", 584, 256, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State38 = GUICtrlCreateButton("NOT DEFINED", 584, 280, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State39 = GUICtrlCreateButton("NOT DEFINED", 584, 304, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State40 = GUICtrlCreateButton("NOT DEFINED", 584, 328, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State41 = GUICtrlCreateButton("NOT DEFINED", 584, 352, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State42 = GUICtrlCreateButton("NOT DEFINED", 584, 376, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State43 = GUICtrlCreateButton("NOT DEFINED", 584, 400, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State44 = GUICtrlCreateButton("NOT DEFINED", 584, 424, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State45 = GUICtrlCreateButton("NOT DEFINED", 584, 448, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State46 = GUICtrlCreateButton("NOT DEFINED", 584, 472, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State47 = GUICtrlCreateButton("NOT DEFINED", 584, 496, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State48 = GUICtrlCreateButton("NOT DEFINED", 584, 520, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State49 = GUICtrlCreateButton("NOT DEFINED", 584, 544, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State50 = GUICtrlCreateButton("NOT DEFINED", 584, 568, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $State51 = GUICtrlCreateButton("NOT DEFINED", 584, 592, 129, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) ; Names Global $Name27 = GUICtrlCreateButton($c27, 713, 16, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name28 = GUICtrlCreateButton($c28, 713, 40, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name29 = GUICtrlCreateButton($c29, 713, 64, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name30 = GUICtrlCreateButton($c30, 713, 88, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name31 = GUICtrlCreateButton($c31, 713, 112, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name32 = GUICtrlCreateButton($c32, 713, 136, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name33 = GUICtrlCreateButton($c33, 713, 160, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name34 = GUICtrlCreateButton($c34, 713, 184, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name35 = GUICtrlCreateButton($c35, 713, 208, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name36 = GUICtrlCreateButton($c36, 713, 232, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name37 = GUICtrlCreateButton($c37, 713, 256, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name38 = GUICtrlCreateButton($c38, 713, 280, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name39 = GUICtrlCreateButton($c39, 713, 304, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name40 = GUICtrlCreateButton($c40, 713, 328, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name41 = GUICtrlCreateButton($c41, 713, 352, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name42 = GUICtrlCreateButton($c42, 713, 376, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name43 = GUICtrlCreateButton($c43, 713, 400, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name44 = GUICtrlCreateButton($c44, 713, 424, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name45 = GUICtrlCreateButton($c45, 713, 448, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name46 = GUICtrlCreateButton($c46, 713, 472, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name47 = GUICtrlCreateButton($c47, 713, 496, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name48 = GUICtrlCreateButton($c48, 713, 520, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name49 = GUICtrlCreateButton($c49, 713, 544, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name50 = GUICtrlCreateButton($c50, 713, 568, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Name51 = GUICtrlCreateButton($c51, 713, 592, 426, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $StartSupervision = GUICtrlCreateButton("START SUPERVISION", 584, 616, 555, 25) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) Global $Separator = GUICtrlCreateButton("", 570, -8, 8, 700) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0x000000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### if $c1 = "disabled" Then GUICtrlSetData($State1,"DISABLED") GUICtrlSetState($State1, $GUI_DISABLE) GUICtrlSetBkColor($State1, 0xFFFF00) EndIf if $c2 = "disabled" Then GUICtrlSetData($State2,"DISABLED") GUICtrlSetState($State2, $GUI_DISABLE) GUICtrlSetBkColor($State2, 0xFFFF00) EndIf if $c3 = "disabled" Then GUICtrlSetData($State3,"DISABLED") GUICtrlSetState($State3, $GUI_DISABLE) GUICtrlSetBkColor($State3, 0xFFFF00) EndIf if $c4 = "disabled" Then GUICtrlSetData($State4,"DISABLED") GUICtrlSetState($State4, $GUI_DISABLE) GUICtrlSetBkColor($State4, 0xFFFF00) EndIf if $c5 = "disabled" Then GUICtrlSetData($State5,"DISABLED") GUICtrlSetState($State5, $GUI_DISABLE) GUICtrlSetBkColor($State5, 0xFFFF00) EndIf if $c6 = "disabled" Then GUICtrlSetData($State6,"DISABLED") GUICtrlSetState($State6, $GUI_DISABLE) GUICtrlSetBkColor($State6, 0xFFFF00) EndIf if $c7 = "disabled" Then GUICtrlSetData($State7,"DISABLED") GUICtrlSetState($State7, $GUI_DISABLE) GUICtrlSetBkColor($State7, 0xFFFF00) EndIf if $c8 = "disabled" Then GUICtrlSetData($State8,"DISABLED") GUICtrlSetState($State8, $GUI_DISABLE) GUICtrlSetBkColor($State8, 0xFFFF00) EndIf if $c9 = "disabled" Then GUICtrlSetData($State9,"DISABLED") GUICtrlSetState($State9, $GUI_DISABLE) GUICtrlSetBkColor($State9, 0xFFFF00) EndIf if $c10 = "disabled" Then GUICtrlSetData($State10,"DISABLED") GUICtrlSetState($State10, $GUI_DISABLE) GUICtrlSetBkColor($State10, 0xFFFF00) EndIf if $c11 = "disabled" Then GUICtrlSetData($State11,"DISABLED") GUICtrlSetState($State11, $GUI_DISABLE) GUICtrlSetBkColor($State11, 0xFFFF00) EndIf if $c12 = "disabled" Then GUICtrlSetData($State12,"DISABLED") GUICtrlSetState($State12, $GUI_DISABLE) GUICtrlSetBkColor($State12, 0xFFFF00) EndIf if $c13 = "disabled" Then GUICtrlSetData($State13,"DISABLED") GUICtrlSetState($State13, $GUI_DISABLE) GUICtrlSetBkColor($State13, 0xFFFF00) EndIf if $c14 = "disabled" Then GUICtrlSetData($State14,"DISABLED") GUICtrlSetState($State14, $GUI_DISABLE) GUICtrlSetBkColor($State14, 0xFFFF00) EndIf if $c15 = "disabled" Then GUICtrlSetData($State15,"DISABLED") GUICtrlSetState($State15, $GUI_DISABLE) GUICtrlSetBkColor($State15, 0xFFFF00) EndIf if $c16 = "disabled" Then GUICtrlSetData($State16,"DISABLED") GUICtrlSetState($State16, $GUI_DISABLE) GUICtrlSetBkColor($State16, 0xFFFF00) EndIf if $c17 = "disabled" Then GUICtrlSetData($State17,"DISABLED") GUICtrlSetState($State17, $GUI_DISABLE) GUICtrlSetBkColor($State17, 0xFFFF00) EndIf if $c18 = "disabled" Then GUICtrlSetData($State18,"DISABLED") GUICtrlSetState($State18, $GUI_DISABLE) GUICtrlSetBkColor($State18, 0xFFFF00) EndIf if $c19 = "disabled" Then GUICtrlSetData($State19,"DISABLED") GUICtrlSetState($State19, $GUI_DISABLE) GUICtrlSetBkColor($State19, 0xFFFF00) EndIf if $c20 = "disabled" Then GUICtrlSetData($State20,"DISABLED") GUICtrlSetState($State20, $GUI_DISABLE) GUICtrlSetBkColor($State20, 0xFFFF00) EndIf if $c21 = "disabled" Then GUICtrlSetData($State21,"DISABLED") GUICtrlSetState($State21, $GUI_DISABLE) GUICtrlSetBkColor($State21, 0xFFFF00) EndIf if $c22 = "disabled" Then GUICtrlSetData($State22,"DISABLED") GUICtrlSetState($State22, $GUI_DISABLE) GUICtrlSetBkColor($State22, 0xFFFF00) EndIf if $c23 = "disabled" Then GUICtrlSetData($State23,"DISABLED") GUICtrlSetState($State23, $GUI_DISABLE) GUICtrlSetBkColor($State23, 0xFFFF00) EndIf if $c24 = "disabled" Then GUICtrlSetData($State24,"DISABLED") GUICtrlSetState($State24, $GUI_DISABLE) GUICtrlSetBkColor($State24, 0xFFFF00) EndIf if $c25 = "disabled" Then GUICtrlSetData($State25,"DISABLED") GUICtrlSetState($State25, $GUI_DISABLE) GUICtrlSetBkColor($State25, 0xFFFF00) EndIf if $c26 = "disabled" Then GUICtrlSetData($State26,"DISABLED") GUICtrlSetState($State26, $GUI_DISABLE) GUICtrlSetBkColor($State26, 0xFFFF00) EndIf if $c27 = "disabled" Then GUICtrlSetData($State27,"DISABLED") GUICtrlSetState($State27, $GUI_DISABLE) GUICtrlSetBkColor($State27, 0xFFFF00) EndIf if $c28 = "disabled" Then GUICtrlSetData($State28,"DISABLED") GUICtrlSetState($State28, $GUI_DISABLE) GUICtrlSetBkColor($State28, 0xFFFF00) EndIf if $c29 = "disabled" Then GUICtrlSetData($State29,"DISABLED") GUICtrlSetState($State29, $GUI_DISABLE) GUICtrlSetBkColor($State29, 0xFFFF00) EndIf if $c30 = "disabled" Then GUICtrlSetData($State30,"DISABLED") GUICtrlSetState($State30, $GUI_DISABLE) GUICtrlSetBkColor($State30, 0xFFFF00) EndIf if $c31 = "disabled" Then GUICtrlSetData($State31,"DISABLED") GUICtrlSetState($State31, $GUI_DISABLE) GUICtrlSetBkColor($State31, 0xFFFF00) EndIf if $c32 = "disabled" Then GUICtrlSetData($State32,"DISABLED") GUICtrlSetState($State32, $GUI_DISABLE) GUICtrlSetBkColor($State32, 0xFFFF00) EndIf if $c33 = "disabled" Then GUICtrlSetData($State33,"DISABLED") GUICtrlSetState($State33, $GUI_DISABLE) GUICtrlSetBkColor($State33, 0xFFFF00) EndIf if $c34 = "disabled" Then GUICtrlSetData($State34,"DISABLED") GUICtrlSetState($State34, $GUI_DISABLE) GUICtrlSetBkColor($State34, 0xFFFF00) EndIf if $c35 = "disabled" Then GUICtrlSetData($State35,"DISABLED") GUICtrlSetState($State35, $GUI_DISABLE) GUICtrlSetBkColor($State35, 0xFFFF00) EndIf if $c36 = "disabled" Then GUICtrlSetData($State36,"DISABLED") GUICtrlSetState($State36, $GUI_DISABLE) GUICtrlSetBkColor($State36, 0xFFFF00) EndIf if $c37 = "disabled" Then GUICtrlSetData($State37,"DISABLED") GUICtrlSetState($State37, $GUI_DISABLE) GUICtrlSetBkColor($State37, 0xFFFF00) EndIf if $c38 = "disabled" Then GUICtrlSetData($State38,"DISABLED") GUICtrlSetState($State38, $GUI_DISABLE) GUICtrlSetBkColor($State38, 0xFFFF00) EndIf if $c39 = "disabled" Then GUICtrlSetData($State39,"DISABLED") GUICtrlSetState($State39, $GUI_DISABLE) GUICtrlSetBkColor($State39, 0xFFFF00) EndIf if $c40 = "disabled" Then GUICtrlSetData($State40,"DISABLED") GUICtrlSetState($State40, $GUI_DISABLE) GUICtrlSetBkColor($State40, 0xFFFF00) EndIf if $c41 = "disabled" Then GUICtrlSetData($State41,"DISABLED") GUICtrlSetState($State41, $GUI_DISABLE) GUICtrlSetBkColor($State41, 0xFFFF00) EndIf if $c42 = "disabled" Then GUICtrlSetData($State42,"DISABLED") GUICtrlSetState($State42, $GUI_DISABLE) GUICtrlSetBkColor($State42, 0xFFFF00) EndIf if $c43 = "disabled" Then GUICtrlSetData($State43,"DISABLED") GUICtrlSetState($State43, $GUI_DISABLE) GUICtrlSetBkColor($State43, 0xFFFF00) EndIf if $c44 = "disabled" Then GUICtrlSetData($State44,"DISABLED") GUICtrlSetState($State44, $GUI_DISABLE) GUICtrlSetBkColor($State44, 0xFFFF00) EndIf if $c45 = "disabled" Then GUICtrlSetData($State45,"DISABLED") GUICtrlSetState($State45, $GUI_DISABLE) GUICtrlSetBkColor($State45, 0xFFFF00) EndIf if $c46 = "disabled" Then GUICtrlSetData($State46,"DISABLED") GUICtrlSetState($State46, $GUI_DISABLE) GUICtrlSetBkColor($State46, 0xFFFF00) EndIf if $c47 = "disabled" Then GUICtrlSetData($State47,"DISABLED") GUICtrlSetState($State47, $GUI_DISABLE) GUICtrlSetBkColor($State47, 0xFFFF00) EndIf if $c48 = "disabled" Then GUICtrlSetData($State48,"DISABLED") GUICtrlSetState($State48, $GUI_DISABLE) GUICtrlSetBkColor($State48, 0xFFFF00) EndIf if $c49 = "disabled" Then GUICtrlSetData($State49,"DISABLED") GUICtrlSetState($State49, $GUI_DISABLE) GUICtrlSetBkColor($State49, 0xFFFF00) EndIf if $c50 = "disabled" Then GUICtrlSetData($State50,"DISABLED") GUICtrlSetState($State50, $GUI_DISABLE) GUICtrlSetBkColor($State50, 0xFFFF00) EndIf if $c51 = "disabled" Then GUICtrlSetData($State51,"DISABLED") GUICtrlSetState($State51, $GUI_DISABLE) GUICtrlSetBkColor($State51, 0xFFFF00) EndIf $CurrentVer = FileGetVersion(@AutoItExe) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Rclick_Dev MsgBox(0,"Software Devs","Tyleo Softwares" & @CRLF & "Tyleo Dev - 2021") Case $Rclick_Ver MsgBox(0,"Software Version","Version : " & $CurrentVer) Case $StartSupervision While 1 if $c1 = "disabled" Then ; Disabled Else $s1 = Ping($c1,$tm) Sleep(1250) if $s1 = "0" or $s1 = "1" or $s1 = "2" or $s1 = "3" or $s1 = "4" Then GUICtrlSetBkColor($State1,0xFF0000) GUICtrlSetColor($State1,0xFFFFFF) GUICtrlSetData($State1,"OFFLINE") Else GUICtrlSetBkColor($State1,0x04B404) GUICtrlSetColor($State1,0xFFFFFF) GUICtrlSetData($State1,"ONLINE") Endif Endif if $c2 = "disabled" Then ; Disabled Else $s2 = Ping($c2,$tm) Sleep(250) if $s2 = "0" or $s2 = "1" or $s2 = "2" or $s2 = "3" or $s2 = "4" Then GUICtrlSetBkColor($State2,0xFF0000) GUICtrlSetColor($State2,0xFFFFFF) GUICtrlSetData($State2,"OFFLINE") Else GUICtrlSetBkColor($State2,0x04B404) GUICtrlSetColor($State2,0xFFFFFF) GUICtrlSetData($State2,"ONLINE") Endif Endif if $c3 = "disabled" Then ; Disabled Else $s3 = Ping($c3,$tm) Sleep(250) if $s3 = "0" or $s3 = "1" or $s3 = "2" or $s3 = "3" or $s3 = "4" Then GUICtrlSetBkColor($State3,0xFF0000) GUICtrlSetColor($State3,0xFFFFFF) GUICtrlSetData($State3,"OFFLINE") Else GUICtrlSetBkColor($State3,0x04B404) GUICtrlSetColor($State3,0xFFFFFF) GUICtrlSetData($State3,"ONLINE") Endif Endif if $c4 = "disabled" Then ; Disabled Else $s4 = Ping($c4,$tm) Sleep(250) if $s4 = "0" or $s4 = "1" or $s4 = "2" or $s4 = "3" or $s4 = "4" Then GUICtrlSetBkColor($State4,0xFF0000) GUICtrlSetColor($State4,0xFFFFFF) GUICtrlSetData($State4,"OFFLINE") Else GUICtrlSetBkColor($State4,0x04B404) GUICtrlSetColor($State4,0xFFFFFF) GUICtrlSetData($State4,"ONLINE") Endif Endif if $c5 = "disabled" Then ; Disabled Else $s5 = Ping($c5,$tm) Sleep(250) if $s5 = "0" or $s5 = "1" or $s5 = "2" or $s5 = "3" or $s5 = "4" Then GUICtrlSetBkColor($State5,0xFF0000) GUICtrlSetColor($State5,0xFFFFFF) GUICtrlSetData($State5,"OFFLINE") Else GUICtrlSetBkColor($State5,0x04B404) GUICtrlSetColor($State5,0xFFFFFF) GUICtrlSetData($State5,"ONLINE") Endif Endif if $c6 = "disabled" Then ; Disabled Else $s6 = Ping($c6,$tm) Sleep(250) if $s6 = "0" or $s6 = "1" or $s6 = "2" or $s6 = "3" or $s6 = "4" Then GUICtrlSetBkColor($State6,0xFF0000) GUICtrlSetColor($State6,0xFFFFFF) GUICtrlSetData($State6,"OFFLINE") Else GUICtrlSetBkColor($State6,0x04B404) GUICtrlSetColor($State6,0xFFFFFF) GUICtrlSetData($State6,"ONLINE") Endif Endif if $c7 = "disabled" Then ; Disabled Else $s7 = Ping($c7,$tm) Sleep(250) if $s7 = "0" or $s7 = "1" or $s7 = "2" or $s7 = "3" or $s7 = "4" Then GUICtrlSetBkColor($State7,0xFF0000) GUICtrlSetColor($State7,0xFFFFFF) GUICtrlSetData($State7,"OFFLINE") Else GUICtrlSetBkColor($State7,0x04B404) GUICtrlSetColor($State7,0xFFFFFF) GUICtrlSetData($State7,"ONLINE") Endif Endif if $c8 = "disabled" Then ; Disabled Else $s8 = Ping($c8,$tm) Sleep(250) if $s8 = "0" or $s8 = "1" or $s8 = "2" or $s8 = "3" or $s8 = "4" Then GUICtrlSetBkColor($State8,0xFF0000) GUICtrlSetColor($State8,0xFFFFFF) GUICtrlSetData($State8,"OFFLINE") Else GUICtrlSetBkColor($State8,0x04B404) GUICtrlSetColor($State8,0xFFFFFF) GUICtrlSetData($State8,"ONLINE") Endif Endif if $c9 = "disabled" Then ; Disabled Else $s9 = Ping($c9,$tm) Sleep(250) if $s9 = "0" or $s9 = "1" or $s9 = "2" or $s9 = "3" or $s9 = "4" Then GUICtrlSetBkColor($State9,0xFF0000) GUICtrlSetColor($State9,0xFFFFFF) GUICtrlSetData($State9,"OFFLINE") Else GUICtrlSetBkColor($State9,0x04B404) GUICtrlSetColor($State9,0xFFFFFF) GUICtrlSetData($State9,"ONLINE") Endif Endif if $c10 = "disabled" Then ; Disabled Else $s10 = Ping($c10,$tm) Sleep(250) if $s10 = "0" or $s10 = "1" or $s10 = "2" or $s10 = "3" or $s10 = "4" Then GUICtrlSetBkColor($State10,0xFF0000) GUICtrlSetColor($State10,0xFFFFFF) GUICtrlSetData($State10,"OFFLINE") Else GUICtrlSetBkColor($State10,0x04B404) GUICtrlSetColor($State10,0xFFFFFF) GUICtrlSetData($State10,"ONLINE") Endif Endif if $c11 = "disabled" Then ; Disabled Else $s11 = Ping($c1,$tm) Sleep(250) if $s11 = "0" or $s11 = "1" or $s11 = "2" or $s11 = "3" or $s11 = "4" Then GUICtrlSetBkColor($State11,0xFF0000) GUICtrlSetColor($State11,0xFFFFFF) GUICtrlSetData($State11,"OFFLINE") Else GUICtrlSetBkColor($State11,0x04B404) GUICtrlSetColor($State11,0xFFFFFF) GUICtrlSetData($State11,"ONLINE") Endif Endif if $c12 = "disabled" Then ; Disabled Else $s12 = Ping($c1,$tm) Sleep(250) if $s12 = "0" or $s12 = "1" or $s12 = "2" or $s12 = "3" or $s12 = "4" Then GUICtrlSetBkColor($State12,0xFF0000) GUICtrlSetColor($State12,0xFFFFFF) GUICtrlSetData($State12,"OFFLINE") Else GUICtrlSetBkColor($State12,0x04B404) GUICtrlSetColor($State12,0xFFFFFF) GUICtrlSetData($State12,"ONLINE") Endif Endif if $c13 = "disabled" Then ; Disabled Else $s13 = Ping($c1,$tm) Sleep(250) if $s13 = "0" or $s13 = "1" or $s13 = "2" or $s13 = "3" or $s13 = "4" Then GUICtrlSetBkColor($State13,0xFF0000) GUICtrlSetColor($State13,0xFFFFFF) GUICtrlSetData($State13,"OFFLINE") Else GUICtrlSetBkColor($State13,0x04B404) GUICtrlSetColor($State13,0xFFFFFF) GUICtrlSetData($State13,"ONLINE") Endif Endif if $c14 = "disabled" Then ; Disabled Else $s14 = Ping($c1,$tm) Sleep(250) if $s14 = "0" or $s14 = "1" or $s14 = "2" or $s14 = "3" or $s14 = "4" Then GUICtrlSetBkColor($State14,0xFF0000) GUICtrlSetColor($State14,0xFFFFFF) GUICtrlSetData($State14,"OFFLINE") Else GUICtrlSetBkColor($State14,0x04B404) GUICtrlSetColor($State14,0xFFFFFF) GUICtrlSetData($State14,"ONLINE") Endif Endif if $c15 = "disabled" Then ; Disabled Else $s15 = Ping($c1,$tm) Sleep(250) if $s15 = "0" or $s15 = "1" or $s15 = "2" or $s15 = "3" or $s15 = "4" Then GUICtrlSetBkColor($State15,0xFF0000) GUICtrlSetColor($State15,0xFFFFFF) GUICtrlSetData($State15,"OFFLINE") Else GUICtrlSetBkColor($State15,0x04B404) GUICtrlSetColor($State15,0xFFFFFF) GUICtrlSetData($State15,"ONLINE") Endif Endif if $c16 = "disabled" Then ; Disabled Else $s16 = Ping($c1,$tm) Sleep(250) if $s16 = "0" or $s16 = "1" or $s16 = "2" or $s16 = "3" or $s16 = "4" Then GUICtrlSetBkColor($State16,0xFF0000) GUICtrlSetColor($State16,0xFFFFFF) GUICtrlSetData($State16,"OFFLINE") Else GUICtrlSetBkColor($State16,0x04B404) GUICtrlSetColor($State16,0xFFFFFF) GUICtrlSetData($State16,"ONLINE") Endif Endif if $c17 = "disabled" Then ; Disabled Else $s17 = Ping($c1,$tm) Sleep(250) if $s17 = "0" or $s17 = "1" or $s17 = "2" or $s17 = "3" or $s17 = "4" Then GUICtrlSetBkColor($State17,0xFF0000) GUICtrlSetColor($State17,0xFFFFFF) GUICtrlSetData($State17,"OFFLINE") Else GUICtrlSetBkColor($State17,0x04B404) GUICtrlSetColor($State17,0xFFFFFF) GUICtrlSetData($State17,"ONLINE") Endif Endif if $c18 = "disabled" Then ; Disabled Else $s18 = Ping($c1,$tm) Sleep(250) if $s18 = "0" or $s18 = "1" or $s18 = "2" or $s18 = "3" or $s18 = "4" Then GUICtrlSetBkColor($State18,0xFF0000) GUICtrlSetColor($State18,0xFFFFFF) GUICtrlSetData($State18,"OFFLINE") Else GUICtrlSetBkColor($State18,0x04B404) GUICtrlSetColor($State18,0xFFFFFF) GUICtrlSetData($State18,"ONLINE") Endif Endif if $c19 = "disabled" Then ; Disabled Else $s19 = Ping($c1,$tm) Sleep(250) if $s19 = "0" or $s19 = "1" or $s19 = "2" or $s19 = "3" or $s19 = "4" Then GUICtrlSetBkColor($State19,0xFF0000) GUICtrlSetColor($State19,0xFFFFFF) GUICtrlSetData($State19,"OFFLINE") Else GUICtrlSetBkColor($State19,0x04B404) GUICtrlSetColor($State19,0xFFFFFF) GUICtrlSetData($State19,"ONLINE") Endif Endif if $c20 = "disabled" Then ; Disabled Else $s20 = Ping($c1,$tm) Sleep(250) if $s20 = "0" or $s20 = "1" or $s20 = "2" or $s20 = "3" or $s20 = "4" Then GUICtrlSetBkColor($State20,0xFF0000) GUICtrlSetColor($State20,0xFFFFFF) GUICtrlSetData($State20,"OFFLINE") Else GUICtrlSetBkColor($State20,0x04B404) GUICtrlSetColor($State20,0xFFFFFF) GUICtrlSetData($State20,"ONLINE") Endif Endif if $c21 = "disabled" Then ; Disabled Else $s21 = Ping($c1,$tm) Sleep(250) if $s21 = "0" or $s21 = "1" or $s21 = "2" or $s21 = "3" or $s21 = "4" Then GUICtrlSetBkColor($State21,0xFF0000) GUICtrlSetColor($State21,0xFFFFFF) GUICtrlSetData($State21,"OFFLINE") Else GUICtrlSetBkColor($State21,0x04B404) GUICtrlSetColor($State21,0xFFFFFF) GUICtrlSetData($State21,"ONLINE") Endif Endif if $c22 = "disabled" Then ; Disabled Else $s22 = Ping($c1,$tm) Sleep(250) if $s22 = "0" or $s22 = "1" or $s22 = "2" or $s22 = "3" or $s22 = "4" Then GUICtrlSetBkColor($State22,0xFF0000) GUICtrlSetColor($State22,0xFFFFFF) GUICtrlSetData($State22,"OFFLINE") Else GUICtrlSetBkColor($State22,0x04B404) GUICtrlSetColor($State22,0xFFFFFF) GUICtrlSetData($State22,"ONLINE") Endif Endif if $c23 = "disabled" Then ; Disabled Else $s23 = Ping($c1,$tm) Sleep(250) if $s23 = "0" or $s23 = "1" or $s23 = "2" or $s23 = "3" or $s23 = "4" Then GUICtrlSetBkColor($State23,0xFF0000) GUICtrlSetColor($State23,0xFFFFFF) GUICtrlSetData($State23,"OFFLINE") Else GUICtrlSetBkColor($State23,0x04B404) GUICtrlSetColor($State23,0xFFFFFF) GUICtrlSetData($State23,"ONLINE") Endif Endif if $c24 = "disabled" Then ; Disabled Else $s24 = Ping($c1,$tm) Sleep(250) if $s24 = "0" or $s24 = "1" or $s24 = "2" or $s24 = "3" or $s24 = "4" Then GUICtrlSetBkColor($State24,0xFF0000) GUICtrlSetColor($State24,0xFFFFFF) GUICtrlSetData($State24,"OFFLINE") Else GUICtrlSetBkColor($State24,0x04B404) GUICtrlSetColor($State24,0xFFFFFF) GUICtrlSetData($State24,"ONLINE") Endif Endif if $c25 = "disabled" Then ; Disabled Else $s25 = Ping($c1,$tm) Sleep(250) if $s25 = "0" or $s25 = "1" or $s25 = "2" or $s25 = "3" or $s25 = "4" Then GUICtrlSetBkColor($State25,0xFF0000) GUICtrlSetColor($State25,0xFFFFFF) GUICtrlSetData($State25,"OFFLINE") Else GUICtrlSetBkColor($State25,0x04B404) GUICtrlSetColor($State25,0xFFFFFF) GUICtrlSetData($State25,"ONLINE") Endif Endif if $c26 = "disabled" Then ; Disabled Else $s26 = Ping($c1,$tm) Sleep(250) if $s26 = "0" or $s26 = "1" or $s26 = "2" or $s26 = "3" or $s26 = "4" Then GUICtrlSetBkColor($State26,0xFF0000) GUICtrlSetColor($State26,0xFFFFFF) GUICtrlSetData($State26,"OFFLINE") Else GUICtrlSetBkColor($State26,0x04B404) GUICtrlSetColor($State26,0xFFFFFF) GUICtrlSetData($State26,"ONLINE") Endif Endif if $c27 = "disabled" Then ; Disabled Else $s27 = Ping($c1,$tm) Sleep(250) if $s27 = "0" or $s27 = "1" or $s27 = "2" or $s27 = "3" or $s27 = "4" Then GUICtrlSetBkColor($State27,0xFF0000) GUICtrlSetColor($State27,0xFFFFFF) GUICtrlSetData($State27,"OFFLINE") Else GUICtrlSetBkColor($State27,0x04B404) GUICtrlSetColor($State27,0xFFFFFF) GUICtrlSetData($State27,"ONLINE") Endif Endif if $c28 = "disabled" Then ; Disabled Else $s28 = Ping($c1,$tm) Sleep(250) if $s28 = "0" or $s28 = "1" or $s28 = "2" or $s28 = "3" or $s28 = "4" Then GUICtrlSetBkColor($State28,0xFF0000) GUICtrlSetColor($State28,0xFFFFFF) GUICtrlSetData($State28,"OFFLINE") Else GUICtrlSetBkColor($State28,0x04B404) GUICtrlSetColor($State28,0xFFFFFF) GUICtrlSetData($State28,"ONLINE") Endif Endif if $c29 = "disabled" Then ; Disabled Else $s29 = Ping($c1,$tm) Sleep(250) if $s29 = "0" or $s29 = "1" or $s29 = "2" or $s29 = "3" or $s29 = "4" Then GUICtrlSetBkColor($State29,0xFF0000) GUICtrlSetColor($State29,0xFFFFFF) GUICtrlSetData($State29,"OFFLINE") Else GUICtrlSetBkColor($State29,0x04B404) GUICtrlSetColor($State29,0xFFFFFF) GUICtrlSetData($State29,"ONLINE") Endif Endif if $c30 = "disabled" Then ; Disabled Else $s30 = Ping($c1,$tm) Sleep(250) if $s30 = "0" or $s30 = "1" or $s30 = "2" or $s30 = "3" or $s30 = "4" Then GUICtrlSetBkColor($State30,0xFF0000) GUICtrlSetColor($State30,0xFFFFFF) GUICtrlSetData($State30,"OFFLINE") Else GUICtrlSetBkColor($State30,0x04B404) GUICtrlSetColor($State30,0xFFFFFF) GUICtrlSetData($State30,"ONLINE") Endif Endif if $c31 = "disabled" Then ; Disabled Else $s31 = Ping($c1,$tm) Sleep(250) if $s31 = "0" or $s31 = "1" or $s31 = "2" or $s31 = "3" or $s31 = "4" Then GUICtrlSetBkColor($State31,0xFF0000) GUICtrlSetColor($State31,0xFFFFFF) GUICtrlSetData($State31,"OFFLINE") Else GUICtrlSetBkColor($State31,0x04B404) GUICtrlSetColor($State31,0xFFFFFF) GUICtrlSetData($State31,"ONLINE") Endif Endif if $c32 = "disabled" Then ; Disabled Else $s32 = Ping($c1,$tm) Sleep(250) if $s32 = "0" or $s32 = "1" or $s32 = "2" or $s32 = "3" or $s32 = "4" Then GUICtrlSetBkColor($State32,0xFF0000) GUICtrlSetColor($State32,0xFFFFFF) GUICtrlSetData($State32,"OFFLINE") Else GUICtrlSetBkColor($State32,0x04B404) GUICtrlSetColor($State32,0xFFFFFF) GUICtrlSetData($State32,"ONLINE") Endif Endif if $c33 = "disabled" Then ; Disabled Else $s33 = Ping($c1,$tm) Sleep(250) if $s33 = "0" or $s33 = "1" or $s33 = "2" or $s33 = "3" or $s33 = "4" Then GUICtrlSetBkColor($State33,0xFF0000) GUICtrlSetColor($State33,0xFFFFFF) GUICtrlSetData($State33,"OFFLINE") Else GUICtrlSetBkColor($State33,0x04B404) GUICtrlSetColor($State33,0xFFFFFF) GUICtrlSetData($State33,"ONLINE") Endif Endif if $c34 = "disabled" Then ; Disabled Else $s34 = Ping($c1,$tm) Sleep(250) if $s34 = "0" or $s34 = "1" or $s34 = "2" or $s34 = "3" or $s34 = "4" Then GUICtrlSetBkColor($State34,0xFF0000) GUICtrlSetColor($State34,0xFFFFFF) GUICtrlSetData($State34,"OFFLINE") Else GUICtrlSetBkColor($State34,0x04B404) GUICtrlSetColor($State34,0xFFFFFF) GUICtrlSetData($State34,"ONLINE") Endif Endif if $c35 = "disabled" Then ; Disabled Else $s35 = Ping($c1,$tm) Sleep(250) if $s35 = "0" or $s35 = "1" or $s35 = "2" or $s35 = "3" or $s35 = "4" Then GUICtrlSetBkColor($State35,0xFF0000) GUICtrlSetColor($State35,0xFFFFFF) GUICtrlSetData($State35,"OFFLINE") Else GUICtrlSetBkColor($State35,0x04B404) GUICtrlSetColor($State35,0xFFFFFF) GUICtrlSetData($State35,"ONLINE") Endif Endif if $c36 = "disabled" Then ; Disabled Else $s36 = Ping($c1,$tm) Sleep(250) if $s36 = "0" or $s36 = "1" or $s36 = "2" or $s36 = "3" or $s36 = "4" Then GUICtrlSetBkColor($State36,0xFF0000) GUICtrlSetColor($State36,0xFFFFFF) GUICtrlSetData($State36,"OFFLINE") Else GUICtrlSetBkColor($State36,0x04B404) GUICtrlSetColor($State36,0xFFFFFF) GUICtrlSetData($State36,"ONLINE") Endif Endif if $c37 = "disabled" Then ; Disabled Else $s37 = Ping($c1,$tm) Sleep(250) if $s37 = "0" or $s37 = "1" or $s37 = "2" or $s37 = "3" or $s37 = "4" Then GUICtrlSetBkColor($State37,0xFF0000) GUICtrlSetColor($State37,0xFFFFFF) GUICtrlSetData($State37,"OFFLINE") Else GUICtrlSetBkColor($State37,0x04B404) GUICtrlSetColor($State37,0xFFFFFF) GUICtrlSetData($State37,"ONLINE") Endif Endif if $c38 = "disabled" Then ; Disabled Else $s38 = Ping($c1,$tm) Sleep(250) if $s38 = "0" or $s38 = "1" or $s38 = "2" or $s38 = "3" or $s38 = "4" Then GUICtrlSetBkColor($State38,0xFF0000) GUICtrlSetColor($State38,0xFFFFFF) GUICtrlSetData($State38,"OFFLINE") Else GUICtrlSetBkColor($State38,0x04B404) GUICtrlSetColor($State38,0xFFFFFF) GUICtrlSetData($State38,"ONLINE") Endif Endif if $c39 = "disabled" Then ; Disabled Else $s39 = Ping($c1,$tm) Sleep(250) if $s39 = "0" or $s39 = "1" or $s39 = "2" or $s39 = "3" or $s39 = "4" Then GUICtrlSetBkColor($State39,0xFF0000) GUICtrlSetColor($State39,0xFFFFFF) GUICtrlSetData($State39,"OFFLINE") Else GUICtrlSetBkColor($State39,0x04B404) GUICtrlSetColor($State39,0xFFFFFF) GUICtrlSetData($State39,"ONLINE") Endif Endif if $c40 = "disabled" Then ; Disabled Else $s40 = Ping($c1,$tm) Sleep(250) if $s40 = "0" or $s40 = "1" or $s40 = "2" or $s40 = "3" or $s40 = "4" Then GUICtrlSetBkColor($State40,0xFF0000) GUICtrlSetColor($State40,0xFFFFFF) GUICtrlSetData($State40,"OFFLINE") Else GUICtrlSetBkColor($State40,0x04B404) GUICtrlSetColor($State40,0xFFFFFF) GUICtrlSetData($State40,"ONLINE") Endif Endif if $c41 = "disabled" Then ; Disabled Else $s41 = Ping($c1,$tm) Sleep(250) if $s41 = "0" or $s41 = "1" or $s41 = "2" or $s41 = "3" or $s41 = "4" Then GUICtrlSetBkColor($State41,0xFF0000) GUICtrlSetColor($State41,0xFFFFFF) GUICtrlSetData($State41,"OFFLINE") Else GUICtrlSetBkColor($State41,0x04B404) GUICtrlSetColor($State41,0xFFFFFF) GUICtrlSetData($State41,"ONLINE") Endif Endif if $c42 = "disabled" Then ; Disabled Else $s42 = Ping($c1,$tm) Sleep(250) if $s42 = "0" or $s42 = "1" or $s42 = "2" or $s42 = "3" or $s42 = "4" Then GUICtrlSetBkColor($State42,0xFF0000) GUICtrlSetColor($State42,0xFFFFFF) GUICtrlSetData($State42,"OFFLINE") Else GUICtrlSetBkColor($State42,0x04B404) GUICtrlSetColor($State42,0xFFFFFF) GUICtrlSetData($State42,"ONLINE") Endif Endif if $c43 = "disabled" Then ; Disabled Else $s43 = Ping($c1,$tm) Sleep(250) if $s43 = "0" or $s43 = "1" or $s43 = "2" or $s43 = "3" or $s43 = "4" Then GUICtrlSetBkColor($State43,0xFF0000) GUICtrlSetColor($State43,0xFFFFFF) GUICtrlSetData($State43,"OFFLINE") Else GUICtrlSetBkColor($State43,0x04B404) GUICtrlSetColor($State43,0xFFFFFF) GUICtrlSetData($State43,"ONLINE") Endif Endif if $c44 = "disabled" Then ; Disabled Else $s44 = Ping($c1,$tm) Sleep(250) if $s44 = "0" or $s44 = "1" or $s44 = "2" or $s44 = "3" or $s44 = "4" Then GUICtrlSetBkColor($State44,0xFF0000) GUICtrlSetColor($State44,0xFFFFFF) GUICtrlSetData($State44,"OFFLINE") Else GUICtrlSetBkColor($State44,0x04B404) GUICtrlSetColor($State44,0xFFFFFF) GUICtrlSetData($State44,"ONLINE") Endif Endif if $c45 = "disabled" Then ; Disabled Else $s45 = Ping($c1,$tm) Sleep(250) if $s45 = "0" or $s45 = "1" or $s45 = "2" or $s45 = "3" or $s45 = "4" Then GUICtrlSetBkColor($State45,0xFF0000) GUICtrlSetColor($State45,0xFFFFFF) GUICtrlSetData($State45,"OFFLINE") Else GUICtrlSetBkColor($State45,0x04B404) GUICtrlSetColor($State45,0xFFFFFF) GUICtrlSetData($State45,"ONLINE") Endif Endif if $c46 = "disabled" Then ; Disabled Else $s46 = Ping($c1,$tm) Sleep(250) if $s46 = "0" or $s46 = "1" or $s46 = "2" or $s46 = "3" or $s46 = "4" Then GUICtrlSetBkColor($State46,0xFF0000) GUICtrlSetColor($State46,0xFFFFFF) GUICtrlSetData($State46,"OFFLINE") Else GUICtrlSetBkColor($State46,0x04B404) GUICtrlSetColor($State46,0xFFFFFF) GUICtrlSetData($State46,"ONLINE") Endif Endif if $c47 = "disabled" Then ; Disabled Else $s47 = Ping($c1,$tm) Sleep(250) if $s47 = "0" or $s47 = "1" or $s47 = "2" or $s47 = "3" or $s47 = "4" Then GUICtrlSetBkColor($State47,0xFF0000) GUICtrlSetColor($State47,0xFFFFFF) GUICtrlSetData($State47,"OFFLINE") Else GUICtrlSetBkColor($State47,0x04B404) GUICtrlSetColor($State47,0xFFFFFF) GUICtrlSetData($State47,"ONLINE") Endif Endif if $c48 = "disabled" Then ; Disabled Else $s48 = Ping($c1,$tm) Sleep(250) if $s48 = "0" or $s48 = "1" or $s48 = "2" or $s48 = "3" or $s48 = "4" Then GUICtrlSetBkColor($State48,0xFF0000) GUICtrlSetColor($State48,0xFFFFFF) GUICtrlSetData($State48,"OFFLINE") Else GUICtrlSetBkColor($State48,0x04B404) GUICtrlSetColor($State48,0xFFFFFF) GUICtrlSetData($State48,"ONLINE") Endif Endif if $c49 = "disabled" Then ; Disabled Else $s49 = Ping($c1,$tm) Sleep(250) if $s49 = "0" or $s49 = "1" or $s49 = "2" or $s49 = "3" or $s49 = "4" Then GUICtrlSetBkColor($State49,0xFF0000) GUICtrlSetColor($State49,0xFFFFFF) GUICtrlSetData($State49,"OFFLINE") Else GUICtrlSetBkColor($State49,0x04B404) GUICtrlSetColor($State49,0xFFFFFF) GUICtrlSetData($State49,"ONLINE") Endif Endif if $c50 = "disabled" Then ; Disabled Else $s50 = Ping($c1,$tm) Sleep(250) if $s50 = "0" or $s50 = "1" or $s50 = "2" or $s50 = "3" or $s50 = "4" Then GUICtrlSetBkColor($State50,0xFF0000) GUICtrlSetColor($State50,0xFFFFFF) GUICtrlSetData($State50,"OFFLINE") Else GUICtrlSetBkColor($State50,0x04B404) GUICtrlSetColor($State50,0xFFFFFF) GUICtrlSetData($State50,"ONLINE") Endif Endif if $c51 = "disabled" Then ; Disabled Else $s51 = Ping($c1,$tm) Sleep(250) if $s51 = "0" or $s51 = "1" or $s51 = "2" or $s51 = "3" or $s51 = "4" Then GUICtrlSetBkColor($State51,0xFF0000) GUICtrlSetColor($State51,0xFFFFFF) GUICtrlSetData($State51,"OFFLINE") Else GUICtrlSetBkColor($State51,0x04B404) GUICtrlSetColor($State51,0xFFFFFF) GUICtrlSetData($State51,"ONLINE") Endif Endif Wend EndSwitch WEnd