Found it...al least ;-) #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $var = Ping("DiskStation",250) If $var Then #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1_1 = GUICreate("Netzwerkcheck", 507, 248, 402, 14) GUISetBkColor(0x008000) $Label1 = GUICtrlCreateLabel("Das Gerät ist im Netz!", 10