• Login
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.
  • S
    Simon Mehnert
    last edited by Feb 17, 2017, 11:39 AM

    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

    C 1 Reply Last reply Feb 17, 2017, 2:38 PM Reply Quote 0
    • C
      Claudia Frank @Simon Mehnert
      last edited by Feb 17, 2017, 2:38 PM

      @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
      • S
        Simon Mehnert
        last edited by Feb 17, 2017, 4:41 PM

        Thankyou, I did use the sendkeys in the end…

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