Another way less hacky maybe :
#include <GUIConstantsEx.au3>
#include <Misc.au3>
If Not _Singleton("MyGui", 1) Then Exit WinSetState("gui V1.1.1", "", @SW_SHOW) + WinSetState("gui V1.1.1", "", @SW_RESTORE)
$gui = GUICreate("gui V1.1.1", 445, 262, -1, -1, -1, -1)
$button = GUICtrlCreateButton("Button", 60, 20, 100, 30, -1, -1)
$bHide = GUICtrlCreateButton("Hide", 60, 60, 100, 30, -1, -1)
$label = GUICtrlCreateLabel("My Text", 80, 100, 50, 15, -1, -1)
$label2 = GUICtrlCreateLabel("My Text", 80, 130, 50, 15, -1, -1)
GUISetState(@SW_SHOWMINIMIZED)
WinSetState($gui, "", @SW_HIDE)
$counter = 0
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $button
$counter += 1
GUICtrlSetData($label, $counter)
Case $bHide
WinSetState($gui, "", @SW_HIDE)
EndSwitch
WEnd
Yes, it made me laugh too...