monoscout999 Posted August 16, 2011 Share Posted August 16, 2011 there`s a style for that... look in the help file when you create an input, the Apendix of styles, i think is ES_PASWORD or something Link to comment Share on other sites More sharing options...
edena Posted August 16, 2011 Author Share Posted August 16, 2011 (edited) Is it:_GUICtrlEdit_GetPasswordCharor_GUICtrlEdit_SetPasswordChar can you or anyone help to go about doing thisOkay when I'm doing this it shows a GUI with a password input and another second GUI to press the button to reveal what you have typed. You can see the script I found from the Autoit help file belowNow I don't want that to happen I just want to put my password and it shows this: **** and I don't want a second GUI just only one GUI with an input password character. Note. any character will do as long as it does not show the letters or numbers or symbols in the input box.#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6#include <GuiEdit.au3>#include <GuiConstantsEx.au3>Opt('MustDeclareVars', 1)$Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work_Main()Func _Main() Local $hEdit ; Create GUI GUICreate("Edit Get Password Char", 400, 300) $hEdit = GUICtrlCreateInput("Test of build-in control", 2, 2, 394, 25, $ES_PASSWORD) GUISetState() MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit)) _GUICtrlEdit_SetPasswordChar($hEdit, "$") ; change password char to $ MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit)) _GUICtrlEdit_SetPasswordChar($hEdit) ; display characters typed by the user. MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete()EndFunc ;==>_MainThank You Edited August 16, 2011 by edena Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now