Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
npocmaka_
- Posts: 516
- Joined: 24 Jun 2013 17:10
- Location: Bulgaria
-
Contact:
#16
Post
by npocmaka_ » 22 Oct 2015 10:52
Squashman wrote:carlos wrote:Hello. Time ago a method for get a password input, showing the * was developed using xcopy.exe.
I can't find that thread. I thought I remember commenting in that thread but can't find it.
I think it was posted on alt.msdos.batch.nt
https://groups.google.com/forum/#!msg/a ... oI1G7xun0J
-
steph31
- Posts: 1
- Joined: 07 Apr 2016 01:19
#18
Post
by steph31 » 07 Apr 2016 01:40
Hello, i am trying to use your code Carlos, and it seems to work fine with basis characters, and also with special characters like '!', '%', '^' etc.
My Windows 2008 R2 is configured in French format/language and the default console codepage is 850. With this codepage all the accented characters ('é', 'è', 'à' etc.) work perfectly with your code.
But, I encounter a problem with these accented characters when I change my console codepage to UTF-8 (chcp 65001 and Lucida font): all the basis characters work fine, but all the accented ones return an inconsistent value like '4' !
Someone has already got this kind of behavior ? Do you know if there is a workaround for getting these accented characters ?
Thanks and regards
Stéphane
-
dbenham
- Expert
- Posts: 2461
- Joined: 12 Feb 2011 21:02
- Location: United States (east coast)
#19
Post
by dbenham » 05 Sep 2016 13:01
I love the work in this thread
I've further developed the technique with the following improvements:
- I can now read any character other than NULL
- The routines work regardless whether delayed expansion is enabled or disabled
- Each routine has the option to specify which characters are accepted
I've started a new thread:
Read key presses via REPLACE - New functions :getKey, :getAnyKey, :getMaskedInputDave Benham