#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", 284, 148, 192, 124)
$Label1 = GUICtrlCreateLabel("Fenstername:", 8, 8, 68, 17)
$Input1 = GUICtrlCreateInput("", 8, 24, 265, 21)
$Label2 = GUICtrlCreateLabel("Text:", 8, 48, 28, 17)
$Input2 = GUICtrlCreateInput("", 8, 72, 265, 21)
$Button1 = GUICtrlCreateButton("Zeig meine MsgBox!", 8, 104, 265, 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)
SoundPlay("Trompete.wav")
MsgBox(0,$text1,$text2)
    EndSwitch
WEnd