; Press Esc to terminate script, Pause/Break to "pause"
;
; ----------------------------------------------------------------------------
; AutoIt Version: 3.3.6.1
; Author:Baked beans
; ----------------------------------------------------------------------------
#include <INet.au3>
#include <GuiButton.au3>
#include <GuiToolBar.au3>
#include <GuiConstantsEx.au3>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GUICreate("Titles", 409, 503, 322, 166)
$button1 = GUICtrlCreateButton("About", 351, 6, 50, 20)
$button2 = GUICtrlCreateButton("Notepad", 55, 43, 297, 29)
$button3 = GUICtrlCreateButton("Sauce", 151, 107, 200, 30)
$label1 = GUICtrlCreateLabel("Select A Button", 169, 9, 88, 15)
GUISetState()
While 1
$msg = GUIGetMsg()
If $msg = -3 Then Exit
If $msg = $button1 Then button1()
If $msg = $button2 Then button2()
If $msg = $button3 Then button3()
WEnd
Func button1()
MsgBox(32, "About Title", "Created by Dgameman1.")
EndFunc ;==>button1
Func button2()
GUICtrlSetState($button2, $GUI_HIDE)
EndFunc ;==>button2
Func button3()
EndFunc ;==>button3 this hide the button.
EDIT: You have a repeated function and you are not closing well the Funcs