Menu

Sound on wrong switch

2021-04-25
2021-04-28
  • Mario Pilesi

    Mario Pilesi - 2021-04-25

    Do it is possible to add a command line switch to play a beep or a sound when password is wrong?

     
  • v77

    v77 - 2021-04-25

    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... :)

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-26

    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.

     
  • v77

    v77 - 2021-04-26

    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.

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-26

    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.

     
  • v77

    v77 - 2021-04-27

    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.

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-27

    It works like this.
    Ty.

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-27

    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
  • v77

    v77 - 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.

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-28

    I not find it in source doc:
    puts(" Error. Please retry.\a");

     
  • Mario Pilesi

    Mario Pilesi - 2021-04-28

    ok ty.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.