Sinisterly
[AutoIt] Password Box - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [AutoIt] Password Box (/Thread-AutoIt-Password-Box)



[AutoIt] Password Box - ReaperX - 12-03-2011

Requires:
Code:
#include <EditConstants.au3> #include <StaticConstants.au3>

Code:
Func PasswordBox($Title, $Prompt, $Password) ;By ReaperX GUICreate($Title, 200, 180, -1 ,-1) Local $Prompt_Label = GUICtrlCreateLabel($Prompt, 10, 10, 177, 60, $SS_CENTER) Local $Input = GUICtrlCreateInput("", 10, 80, 180, 20, $ES_PASSWORD) Local $Continue = GUICtrlCreateButton("Continue", 70, 120, 50, 30) GUISetState() While 1 $Msg = GUIGetMsg() Switch $Msg Case -3 Exit Case $Continue If GUICtrlRead($Input) = $Password Then GUIDelete() Return Else MsgBox(0, "Error!", "Incorrect Password!") EndIf EndSwitch WEnd EndFunc



RE: [AutoIt] Password Box - 1234hotmaster - 12-03-2011

nice job but...

Code:
InputBox("Hello World","Enter Password","*")
Tongue


RE: [AutoIt] Password Box - ReaperX - 12-03-2011

(12-03-2011, 03:18 AM)[ntdll.dll]x[advapi32.dll] Wrote: nice job but...

Code:
InputBox("Hello World","Enter Password","*")
Tongue

I Dont Think of the Simple Stuff...