• Login
Community
  • Login

Why is my macro not working?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 Posters 708 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.
  • A
    andrecool-68
    last edited by Apr 18, 2020, 6:28 AM

    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"/>
    
    
    A E 3 Replies Last reply Apr 18, 2020, 1:00 PM Reply Quote 0
    • A
      Alan Kilborn @andrecool-68
      last edited by Apr 18, 2020, 1:00 PM

      @andrecool-68

      Items in the Preferences typically aren’t macroable.

      1 Reply Last reply Reply Quote 2
      • E
        Ekopalypse @andrecool-68
        last edited by Apr 18, 2020, 1:12 PM

        @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
        • E
          Ekopalypse @andrecool-68
          last edited by Ekopalypse Apr 18, 2020, 3:05 PM Apr 18, 2020, 3:04 PM

          @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
          • A
            andrecool-68
            last edited by Apr 18, 2020, 5:40 PM

            @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
            • Y
              yhjtgt6hhrf 4frtgy
              last edited by Apr 26, 2020, 9:26 AM

              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