#include #include GUICreate("Test", 500, 500) GUISetState(@SW_SHOW) $write0Button = GUICtrlCreateButton ("Write 0", 10, 10, 100, 100 ) While 1 $nMsg = GUIGetMsg() Select case $nMSG = $write0Button MsgBox($MB_OK, "ASJDKLN", "DONE") Case $nMSG = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd