Community
    • Login

    Problem running a macro without any associated key combination

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 142 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Paolo LinxP Offline
      Paolo Linx
      last edited by

      Hi all,
      Yesterday I did some cleaning on my laptop with CCleaner v6.39.
      Maybe it cleaned a little too much… or maybe that’s not the reason.
      Today, when I try to run a macro via the “Macro” menu, I previously recorded in Notepad++, I get this message:
      “Security Warning
      The security information for shortcuts.xml is missing in config.xml.
      For security reasons, the integrity of shortcuts.xml will be checked. To run your customized command, please review the opened shortcuts.xml. If the file content is OK, use “Validate shortcuts.xml” from the menu to confirm it.”
      Everything seems legitimate, shortcuts.xml pops up and its content is ok (no &#x…, no CR/LF issue), I just can’t find the indicated menu item to confirm it.
      Can you help me?
      Thanks in advance
      Paolo

      M Andre Z EckenrodeM 2 Replies Last reply Reply Quote 0
      • M Andre Z EckenrodeM Offline
        M Andre Z Eckenrode @Paolo Linx
        last edited by

        @Paolo-Linx

        I got the same message in NPP yesterday when I attempted to run an often-used Python script for which I’d created a key combo last year, and used without any issue until now. However, my getting that message was not preceded by any use of CCleaner, which I haven’t used in a long time, so that’s probably not related. My script lives, for key combo launching purposes, at menu Plugins > Python Script > ADM, with an assigned key combo of Ctrl+Alt+Numpad1. You should post your debug info (menu ? > Debug Info…) here. My own is:

        Notepad++ v8.9.7   (32-bit)
        Build time: Jul 14 2026 - 01:11:31
        Scintilla/Lexilla included: 5.6.4/5.5.1
        Boost Regex included: 1_90
        pugixml included: 1.16
        nlohmann JSON included: 3.12.0
        Path: C:\Program Files (x86)\Notepad++\notepad++.exe
        Command Line: "C:\Program Files\ArdfryImaging\PNGOUTWin\PNGOUTWin Reg Codes.txt" 
        Admin mode: OFF
        Local Conf mode: OFF
        Cloud Config: OFF
        WinGUp: present
        disableNppAutoUpdate.xml: absent
        Periodic Backup: ON
        Placeholders: OFF
        Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
        Multi-instance Mode: monoInst
        asNotepad: OFF
        File Status Auto-Detection: cdEnabledNew (for current file/tab only)
        Dark Mode: OFF
        Display Info:
            primary monitor: 1920x1080, scaling 100%
            visible monitors count: 1
            installed Display Class adapters: 
                0000: Description - Intel(R) HD Graphics 620
                0000: DriverVersion - 31.0.101.2140
                0001: Description - NVIDIA GeForce 940MX
                0001: DriverVersion - 30.0.15.1169
        OS Name: Windows 10 Enterprise (64-bit)
        OS Version: 22H2
        OS Build: 19045.7548
        Current ANSI codepage: 1252
        Plugins: 
            BetterMultiSelection (1.5)
            ColumnsPlusPlus (1.3.1)
            ColumnTools (1.4.5.1)
            ComparePlus (3)
            DSpellCheck (1.5)
            ExtSettings (1.3.1)
            HTMLTag_unicode (1.6)
            mimeTools (3.1)
            MultiClipboard (2.1)
            MultiReplace (6.0.0.36)
            NppCalc (1.5)
            NppConverter (4.7)
            NppExport (0.4)
            NPPJSONViewer (2.2)
            NppTextFX (2.0.3)
            NppXmlTreeviewPlugin (2)
            PreviewHTML (1.4.5)
            PythonScript (2.1)
            RegexTrainer (1.2)
            Search++ (0.6)
            SessionMgr (1.4.4)
        

        Possible v8.9.7 bug?

        PeterJonesP 1 Reply Last reply Reply Quote 0
        • M Andre Z EckenrodeM Offline
          M Andre Z Eckenrode @Paolo Linx
          last edited by

          @Paolo-Linx

          Forgot to add: You can find Validate shortcuts.xml at menu Run > Validate shortcuts.xml.

          Paolo LinxP 1 Reply Last reply Reply Quote 1
          • Paolo LinxP Offline
            Paolo Linx @M Andre Z Eckenrode
            last edited by

            @M-Andre-Z-Eckenrode said:

            @Paolo-Linx

            Forgot to add: You can find Validate shortcuts.xml at menu Run > Validate shortcuts.xml.

            Thank you very much. My problem is solved.
            Paolo

            1 Reply Last reply Reply Quote 0
            • PeterJonesP Online
              PeterJones @M Andre Z Eckenrode
              last edited by

              @M-Andre-Z-Eckenrode said:

              Possible v8.9.7 bug?

              I wouldn’t call it a bug. v8.9.7 intentionally made sure that running a Macro performed the same HMAC check as running a Run menu entry. If your PythonScript runs a menu command (either a macro or a run-menu command, especially), it would also trigger that check. Or, if you hadn’t used any of the intervening v8.9.6.2-4 subversions, then your HMAC would never have been updated, and Notepad++ would demand a single validate to your custom shortcuts, becaus of your PythonScript shortcut.

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors