#include Opt("GUIOnEventMode", 1) Global $IDLed Global $hGUI $hGUI = GUICreate("Demo", 1250, 500) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") $IDLed = GUICtrlCreateGraphic(520, 13 , 14, 14) GUICtrlSetGraphic($IDLed, $GUI_GR_COLOR, 0xFF0000, 0xFF0000) GUICtrlSetGraphic($IDLed, $GUI_GR_PIE, 7, 7, 7, 0, 360) GUISetState(@SW_SHOW) _MG_Graph_erstellen (1, $hGUI, 80, 160, 500, 280) _MG_Graph_initialisieren (1) While 1 Sleep(100) WEnd Func _Exit() Exit EndFunc