Hmmm...I'm using the 10th build and have no problem.
GuiCreate("Titel")
$butMove = GuiSetControl("button","Move",50,10,70,22)
$butCopy = GuiSetControl("button","Copy",50,40,70,22)
$butConfig = GuiSetControl("button","Config",50,70,70,22)
$butCancel = GuiSetControl("button","Cancel",50,100,70,22)
GuiWaitClose()
If GuiRead() = $butMove then Msgbox(0,"","Move clicked")
If GuiRead() = $butCopy then Msgbox(0,"","Copy clicked")
If GuiRead() = $butConfig Then Msgbox(0,"","Config clicked")
If GuiRead() = $butCancel OR GuiMsg(0) = -3 Then Exit
#include "GUIConstants.au3"
$title="My advanced GUI"
GUICreate($title); will create a dialog box that when displayed is centered
GUISetControl("button", "my clicking button", 10,10)
GUISetControlNotify()
GUISetControl("button", "my closing button", 10,50)
GUISetControlEx(-1,$GUI_FOCUS) ; the focus is on this button and Click will hide the GUI
GUIShow() ; display the dialog box timeout 10 seconds
AdLibEnable("CheckChange")
WinWaitClose($title) ; GuiWaitClose cannot be used to wait
AdlibDisable()
exit
Func CheckChange ()
$n = GUIMsg(0) ; get the current state and return immediately
Select
case $n>0
MsgBox(0,"", "the button " & GUIRead() & " has been clicked",2)
Case $n=-1
MsgBox(0,"", "dialog box being closed by timeout",2)
exit ; or GuiDelete to stop the waiting WinWaitClose
case $n=-2
MsgBox(0,"", "dialog box is hidden",2)
GuiDelete() ; will stop the waiting of WinWaitClose and close the script
case $n=-3
MsgBox(0,"", "dialog box being closed by red button",2)
exit ; or GuiDelete to stop the waiting WinWaitClose
case $n=-4
MsgBox(0,"", "dialog box minimized",2)
case $n=-5
MsgBox(0,"", "dialog box restaured",2)
case $n=-6
MsgBox(0,"", "dialog box maximize",2)
case $n=0
; no change
case else
MsgBox(0,"", "unknown return from GUIMsg",2)
EndSelect
EndFunc