de1m Posted September 12, 2014 Share Posted September 12, 2014 Hi, i've wrote a console applicaton and I need to input a password with "*" chars. I found >this topic, but I don't understand how can I change the function "Cin" to input a password. Can someone help me please?! Regards, alex Link to comment Share on other sites More sharing options...
Geir1983 Posted September 12, 2014 Share Posted September 12, 2014 You can set the style of GuiCtrlCreateInput to $ES_PASSWORD Link to comment Share on other sites More sharing options...
de1m Posted September 12, 2014 Author Share Posted September 12, 2014 but this is a GUI Input and I need a console(in Windows CMD) input. Link to comment Share on other sites More sharing options...
Malkey Posted September 12, 2014 Share Posted September 12, 2014 Maybe this. ; Asks the user to enter a maximum 4 character password. Local $sPasswd = InputBox("Security Check", "Enter your password.", "", "*M4") ; Display the result. MsgBox(0, "Results", $sPasswd) See "InputBox" function in help file for more examples. Link to comment Share on other sites More sharing options...
de1m Posted September 12, 2014 Author Share Posted September 12, 2014 thank for help. I've solved my problem. I use now this UDF I can disable input in console with this code: _Console_SetMode(-1, BitNOT($ENABLE_ECHO_INPUT)) 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