Community
    • Login

    Why is my macro not working?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 682 Views
    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.
    • andrecool-68A
      andrecool-68
      last edited by

      I wrote such a macro, but it does not want to work:

          <Macro name="Clickable Link Settings (on\off)" Ctrl="no" Alt="no" Shift="no" Key="0">
          <Action type="2" message="0" wParam="6319" lParam="0" sParam="" />
          </Macro>
      

      Team number taken from english.xml file

      <Item id="6318" name="Clickable Link Settings"/>
      <Item id="6319" name="Enable"/>
      
      
      Alan KilbornA EkopalypseE 3 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @andrecool-68
        last edited by

        @andrecool-68

        Items in the Preferences typically aren’t macroable.

        1 Reply Last reply Reply Quote 2
        • EkopalypseE
          Ekopalypse @andrecool-68
          last edited by

          @andrecool-68

          the reason is that this is an id of an dialog item and not a message
          which can be send. Let me see if I can understand how this is done
          internally and see if there is a chance to workaround.

          1 Reply Last reply Reply Quote 4
          • EkopalypseE
            Ekopalypse @andrecool-68
            last edited by Ekopalypse

            @andrecool-68

            is seems npp doesn’t use internal windows messages in this case,
            instead it is changing the nppGUI parameters on the fly.

            This means that the only reliable way to do what you want to do is to automate the settings dialog for it. Let me know if I can help out with a python script.

            1 Reply Last reply Reply Quote 2
            • andrecool-68A
              andrecool-68
              last edited by

              @Alan-Kilborn @Ekopalypse Hi everyone!
              It is a pity that it is not possible to make your own macro for each operation))
              @Ekopalypse There is no great need to write python script.
              Thank you all for your help!

              1 Reply Last reply Reply Quote 2
              • yhjtgt6hhrf 4frtgyY
                yhjtgt6hhrf 4frtgy
                last edited by

                Have same problem, restart macro

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors