Community
    • Login

    Can I specify a hotkey for each of my pythonscripts?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 1.2k 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.
    • 古旮古
      古旮
      last edited by

      I am using Python Script 1.0.8.0.
      For now, I can only specify a hotkey for Run Previous Script, which means, if I have more than 1 script, I can’t invoke those scripts one after another.
      I’ve tried to record macro and run the script. Couldn’t record it.
      Is it possible to specify a hotkey for each script?

      Eko palypseE 1 Reply Last reply Reply Quote 0
      • Eko palypseE
        Eko palypse @古旮
        last edited by Eko palypse

        @古旮

        yes, if you mean shortcut you can do this by using the pythonscript configuration menu and adding the scripts to the menu item list.
        Once done, restart notepad++ and goto Run->ModifyShortcut…->PluginsCommands and add your preferred shortcut.

        Just for info - the current pythonscript plugin version is 1.3.0

        Eko

        1 Reply Last reply Reply Quote 4
        • Scott SumnerS
          Scott Sumner
          last edited by Scott Sumner

          Nothing at all wrong with @Eko-palypse 's response, but sometimes pictures help. :-)

          Drop down the Plugins -> Pythonscript menu and pick “Configuration”:

          Imgur

          After choosing “Configuration” you will see this window appear:

          Imgur

          "Add"ing your script to the “Menu items”, this gives Shortcut Mapper the ability to see it (after a Notepad++ restart). Then invoke Shortcut Mapper and you can keymap your “added” scripts on the Plugin commands tab there:

          Imgur

          1 Reply Last reply Reply Quote 5
          • Eko palypseE
            Eko palypse
            last edited by

            I’m too lazy for those things :-D

            Eko

            1 Reply Last reply Reply Quote 2
            • 古旮古
              古旮
              last edited by

              Thanks for your help! Really appreciate it!

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