Community
    • Login

    Launching a plugin when ++ startsup

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.9k 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.
    • Simon MehnertS
      Simon Mehnert
      last edited by

      Hi,

      I’d like ++ to open then launch the compare plugin, is this possible?

      At the moment its being from within excel with 2 files;
      s = Shell(sNotePadPath & Sheets(“Settings”).Range(“sourceDir”) & sFileName)

      Thanks for the help

      Simon

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Simon Mehnert
        last edited by

        @Simon-Mehnert

        npp, afaik, doesn’t have a builtin way to do what you want but depending on
        your installation it is possible solve the problem with plugins for example
        npp_exec (advanced option->run script at startup) or
        pythonscript or luascript plugin registering a callback for READY or BUFFERACTIVATED notification.

        I assume the code you posted is VBA and Shell seems to return something.
        If this is the handle, can’t you do something like sending a keystroke to that handle?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Simon MehnertS
          Simon Mehnert
          last edited by

          Thankyou, I did use the sendkeys in the end…

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