Am besten so etwas in Richtung Gui, hier mal ein schnelles Beispiel:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$oForm = GUICreate("Anmeldung", 366, 129, 192, 124)
$Label1 = GUICtrlCreateLabel("Username:", 16, 16, 55, 17)
$Label2 = GUICtrlCreateLabel("Passwort:", 16, 56, 50, 17)
$txtUser = GUICtrlCreateInput("", 88, 16, 257, 21)
$txtPassword = GUICtrlCreateInput("", 88, 48, 257, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$cmdLogin = GUICtrlCreateButton("Anmelden", 48, 88, 129, 25, $WS_GROUP)
$cmdESC = GUICtrlCreateButton("Abbrechen", 192, 88, 137, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Local $username,$password
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $cmdESC
Exit
Case $cmdLogin
$username = GUICtrlRead($txtUser)
$password = GUICtrlRead($txtPassword)
GUISetState(@SW_HIDE)
ExitLoop
EndSwitch
WEnd
; Ab hier kannst du mit den beiden Variablen weiterarbeiten ($username, $password)
[/autoit] [autoit][/autoit] [autoit]MsgBox(64,'User und Passwort',$username & @LF & $password)
[/autoit]