Jump to content

About Tabs on Keyboard?


Recommended Posts

Is it:

_GUICtrlEdit_GetPasswordChar

or

_GUICtrlEdit_SetPasswordChar

can you or anyone help to go about doing this

Okay 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 below

Now 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 ;==>_Main

Thank You

Edited by edena
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...