cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.2.0
 Author:         TeiMoe

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=E:\Programme\Programmieren\Koda FormDesigner\Forms\Metin2 Log-in.kxf
$Form1 = GUICreate("Form1", 647, 476, 192, 124)
$Id = GUICtrlCreateLabel("Gebe hier deinen Accountnamen ein", 56, 96, 177, 17)
$Label1 = GUICtrlCreateLabel("Gebe hier dein Passwort ein", 56, 144, 136, 17)
$Input1 = GUICtrlCreateInput("", 304, 96, 121, 21)
$Input2 = GUICtrlCreateInput("", 304, 144, 121, 21, $ES_PASSWORD)
$Los = GUICtrlCreateButton("Los!", 264, 376, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Los
            _Func1 ()
    EndSwitch
WEnd



Func    _Func1 ()
	Run("notepad.exe")
	WinWaitActive("Unbenannt - Editor")
	Sleep(1000)
	Send($Input1, 1)
	Send("{Enter}")
	Send($Input2, 1)
Exit
EndFunc




