I have a gui input box for password and wanted to see if the user can just press enter rather than clicking a button
I know on InputBox the user can enter text and press enter continue to the next step.
Is it possible to do the same when using the GUICtrlCreateInput?
Here's partial code:
;password
GuiCtrlCreateLabel("Enter your directory password (optional):", 10, 55, 325, 20)
$MyPassword = GUICtrlCreateInput("",10, 75, 350, 20, 0x00020) ;the 0x00020 creates the '*' while typing
GUICtrlSetState(-1, $GUI_FOCUS) ;set button to default so user can just hit enter to accept defaults
If $msg = $Save Then
$MyPassword = GUICtrlRead($MyPassword)
endif
Currently the user must click on the Save button.
Is there a way for the user to enter the password and press the enter key?
Thanks.
DNB