#include Local $hGUI = GUICreate("Example", 300, 200)Local $idButton = GUICtrlCreateButton("Run button", 0, 0, 85, 25)GUISetState(@SW_SHOW, $hGUI)While 1Switch GUIGetMsg()Case $GUI_EVENT_CLOSEExitLoopCase $idButtonGUICtrlSetData($idButton,"GUICtrlSetData")EndSwitchWEnd