#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <Misc.au3>
#include <EditConstants.au3>
$win2 = GUICreate("Passwort",310,310,-1,-1, $WS_POPUPWINDOW)
$pw1 = GUICtrlCreateInput("",80,130,150,25,$ES_PASSWORD)
GUICtrlCreateLabel("Das Passwort Bitte!!!",99,190,150,20)
ControlClick($win2,"","left",1,155,143)
GUISetState(@SW_SHOW)
While 1
ProcessClose("taskmgr.exe")
WinActivate("Passwort","")
WinSetOnTop("Passwort","",1)
$maus = WinGetPos($win2)
_MouseTrap($maus[0], $maus[1], $maus[0] + $maus[2], $maus[1] + $maus[3])
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $pw1
$pw = "a"
If $pw <> GUICtrlRead($pw1) Then
ContinueLoop
Else
ExitLoop
EndIf
EndSwitch
WEnd
MsgBox(262144,"","OK")
GUIDelete($win2)
_MouseTrap()