Hi zusammen
Ich habe mich hier in diesem forum angemeldet, weil ich gerade an einen passwortmanager arbeite und jezt ein problem aufgetaucht ist.
Hier der code :
Spoiler anzeigen
#include <GuiConstantsEx.au3>
#include <Misc.au3>
Opt("MustDeclareVars", 1)
[/autoit] [autoit][/autoit] [autoit]_Main()
[/autoit] [autoit][/autoit] [autoit]Func _Main()
Local $GUI, $coords[4], $input1, $label2, $bLoop, $text
$GUI = GUICreate("Zugriff Verweigert!!!",630,451,407,267)
$input1=GuiCtrlCreateInput("",99,122,350,20)
$label2=GuiCtrlCreateLabel("Wenn du nicht MiluBarakus bist solltest du hier schnell verschwinden.",39,50,193,150)
$bLoop = 1
While 1
$text = GUICtrlRead ($Input1) ;Fragt die eingegebenen Zahlen ab, mit 1 Millisekunde Pause, um den PC nicht zu überlasten
sleep (1)
WEnd
GUISetBkColor( 0xff5001, $GUI)
[/autoit] [autoit][/autoit] [autoit]GUISetState()
[/autoit] [autoit][/autoit] [autoit]sleep (10000)
While $bLoop = 1
If @error = 1 Then
MsgBox(4096, "Error", "You pressed 'Cancel' - try again!")
Else
; They clicked OK, but did they type the right thing?
winwaitactive ("Zugriff Verweigert!!!")
If $text <> "test" Then
winwaitactive ("Zugriff Verweigert!!!")
MsgBox(4096, "Error", "You typed in the wrong thing - try again!")
Else
$bLoop = 0 ; Exit the loop - ExitLoop would have been an alternative too
EndIf
EndIf
WEnd
; Print the success message
MsgBox(4096,"AutoIt Example", "You typed in the correct word! Congrats.")
While 1
$coords = WinGetPos($GUI)
_MouseTrap($coords[0], $coords[1], $coords[0] + $coords[2], $coords[1] + $coords[3])
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case Else
;;;
EndSwitch
WEnd
_MouseTrap()
Exit
EndFunc ;==>_Main
leider funktioniert es nicht, auch wenn ich das richtige passwort eingebe, heisst es, es sei falsch.
könnt ihr mir helfen?
mfg MiluBarakus