It's very easy to do (provided that the system is configured to play a sound for error events).
But could you explain why you need that? When we type the password, we are supposed to watch what is going on... :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I wake up in the morning, I turn on the computer with my eyes closed and I insert the password.
I would like to hear a beep to understand that you have to re-enter it. :-)
I usually keep the disabled system sounds and I have not tried if PC from DOS produces a sound when the password is wrong.
I would also like if you could set the volume and, if the beep is used, the frequency.
Ty.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just remembered something: playing a sound registers the volume for the program and its name/location in the registry. I don't like that, it terribly lacks discretion for a tool like that.
A workaround could be to use one of the oldest ways to play a sound: using the "bell" character (because it is played by the console).
You can check whether your console will play this sound by typing Ctrl-G and then Enter. But on Windows 10, if you have disabled the system sounds, you may get nothing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you try this? The sound produced by the "bell character" depends on the Windows version and the "sound scheme". According to my tests:
- Windows XP and Vista do nothing (but who cares? :))
- Windows 7 produces a small and typical sound, no matter the sound scheme
- Windows 8 and 10 produce a sound depending on the sound scheme
So it seems to me good enough and will not bother the users who have selected "No Sound" in their sound scheme (except for Windows 7 users), so it removes the need for an option.
Maybe it may be a lacks discretion missing option f.e. if you use the tool in a non-private own computer.
It should be Default and sound by Option.
The best would be also a sound with system sound off.
When I use ProxyCrypt In mixer volume I can to set volume for "Acoustic signals System".
I don't know if it is also possible to have a mixer volume specific for ProxyCrypt instead of signals System.
Last edit: Mario Pilesi 2021-04-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As said, it's not ProxyCrypt that produces the sound but the console (conhost.exe).
So you can open the volume mixer, then open a console and make a sound with the console by using either ProxyCrypt (with a password error) or the Ctrl-G trick. Then you should see a volume control for the console.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do it is possible to add a command line switch to play a beep or a sound when password is wrong?
It's very easy to do (provided that the system is configured to play a sound for error events).
But could you explain why you need that? When we type the password, we are supposed to watch what is going on... :)
When I wake up in the morning, I turn on the computer with my eyes closed and I insert the password.
I would like to hear a beep to understand that you have to re-enter it. :-)
I usually keep the disabled system sounds and I have not tried if PC from DOS produces a sound when the password is wrong.
I would also like if you could set the volume and, if the beep is used, the frequency.
Ty.
I just remembered something: playing a sound registers the volume for the program and its name/location in the registry. I don't like that, it terribly lacks discretion for a tool like that.
A workaround could be to use one of the oldest ways to play a sound: using the "bell" character (because it is played by the console).
You can check whether your console will play this sound by typing Ctrl-G and then Enter. But on Windows 10, if you have disabled the system sounds, you may get nothing.
Ctrl-G work in dos but I not see how implement in proxycrypt.
When password is wrong PC loop inadee.
It should produce a sound directly from itself.
Can you try this? The sound produced by the "bell character" depends on the Windows version and the "sound scheme". According to my tests:
- Windows XP and Vista do nothing (but who cares? :))
- Windows 7 produces a small and typical sound, no matter the sound scheme
- Windows 8 and 10 produce a sound depending on the sound scheme
So it seems to me good enough and will not bother the users who have selected "No Sound" in their sound scheme (except for Windows 7 users), so it removes the need for an option.
It works like this.
Ty.
Maybe it may be a lacks discretion missing option f.e. if you use the tool in a non-private own computer.
It should be Default and sound by Option.
The best would be also a sound with system sound off.
When I use ProxyCrypt In mixer volume I can to set volume for "Acoustic signals System".
I don't know if it is also possible to have a mixer volume specific for ProxyCrypt instead of signals System.
Last edit: Mario Pilesi 2021-04-27
As said, it's not ProxyCrypt that produces the sound but the console (conhost.exe).
So you can open the volume mixer, then open a console and make a sound with the console by using either ProxyCrypt (with a password error) or the Ctrl-G trick. Then you should see a volume control for the console.
I not find it in source doc:
puts(" Error. Please retry.\a");
https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences
ok ty.