#include-once
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

; Optionen für dieses Script festlegen.
Opt("MustDeclareVars", 1)

; Variablen deklarieren.
Global $hGUI, $idEdiText

; Das Fenster der GUI erstellen.
	$hGUI = GUICreate("Test", 800, 660, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU))
	GUISetBkColor(0x0D4FB3) ; Blau

	; Das Edit-Controlls in der GUI erstellen und formatieren.
	$idEdiText = GUICtrlCreateEdit("", 10, 92, 782, 333, BitOR($ES_MULTILINE, $WS_VSCROLL))
	GUICtrlSetFont($idEdiText, 12, 400, "Tahoma")
	GUICtrlSetState($idEdiText, $GUI_FOCUS)

 GUISetState(@SW_SHOW)

    GUICtrlSetData($idEdiText, ClipGet())

    ; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
    GUIDelete()


MsgBox(0 + 0 + 0 + 0 + 262144, "", "Ich habe fertig!", 2)

Exit

