#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("MsgBox Generator | Gugi", 275, 182, 192, 124)
$Label1 = GUICtrlCreateLabel("Fenstername:", 8, 0, 68, 17)
$Input1 = GUICtrlCreateInput("", 8, 24, 257, 21)
$Label2 = GUICtrlCreateLabel("Text:", 8, 48, 28, 17)
$Input2 = GUICtrlCreateInput("", 8, 72, 257, 21)
$Label3 = GUICtrlCreateLabel("Flag:", 8, 96, 27, 17)
$Input3 = GUICtrlCreateInput("", 8, 120, 257, 21)
$Button1 = GUICtrlCreateButton("Zeig meine MsgBox!", 8, 144, 257, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$text1 = Guictrlread($Input1)
$text2 = Guictrlread($input2)
$flag = Guictrlread($Input3)
SoundPlay("Trompete.wav")
MsgBox($flag, $text1, $text2)
	EndSwitch
WEnd
