Request to Remove Annoying Save Sound

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

muddjs
User
Posts: 4
Joined: Wed Jun 19, 2024 3:15 pm

Request to Remove Annoying Save Sound

Post by muddjs »

Hi all,
Today I noticed that when saving an already saved file, pressing "Ctrl+S" again triggers a notification sound. I checked the settings, but there doesn’t seem to be an option to disable this sound caused by repeatedly pressing "Ctrl+S" while saving.

This is quite an annoying feature. I hope a fix can be released soon.
Thank you!
User avatar
rakunavi
User
Posts: 1677
Joined: Sat Sep 11, 2021 5:04 am

Re: Request to Remove Annoying Save Sound

Post by rakunavi »

Hello muddjs,

Method 1

  • Type "Change system sounds" in the Windows Start menu, open the Sound dialog in the Control Panel, and in the Sound tab, change the program event sound in the Exclamation from the default "Windows Background.wav" to "(None)". However, this will not only mute the sound of all warning dialogs in the PDF-XChange Editor, but will also mute the sound of the Exclamation program event in any other application.

    All program events and sound scheme switching can be set by the registry, and scripts such as autohotkey would allow for some customization.

    • Animation1.gif
Method 2

  • Perhaps you want to mute only the sound of the Save command corresponding to the Ctrl+S shortcut key in the PDF-XChange Editor. If that is the case, you might want to remove the shortcut key Ctrl+S assigned to the existing Save command, then set up a JavaScript and assign the shortcut key to that script.

    As you can see in this post, you can assign shortcut keys to JavaScript commands directly from build 393 using the cHotkey parameter, so you might try using that.

    Code: Select all

    trustedSaveAs = app.trustedFunction(function(doc) {
        app.beginPriv();
        doc.saveAs({ cPath: doc.path });
        app.endPriv();
    });
    
    app.addMenuItem({
        cName: "saveNoSound",
        cUser: "Save Without Sound",
        cParent: "File",
        nPos: "cmd.save",
        cRbParent: "File",
        cRbPos: "cmd.save",
        cExec: "trustedSaveAs(this);",
        cEnable: "event.rc = (event.target != null);",
        cHotkey: "Ctrl+S"
    });
    • Animation2.gif
    If you want to customize icons, etc., Mathew's post may be helpful.

Best regards,
rakunavi
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Request to Remove Annoying Save Sound

Post by Stefan - PDF-XChange »

:)