• Login
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 Dec 11, 2018, 5:39 AM

    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?

    E 1 Reply Last reply Dec 11, 2018, 12:24 PM Reply Quote 0
    • E
      Eko palypse @古旮
      last edited by Eko palypse Dec 11, 2018, 12:24 PM Dec 11, 2018, 12:24 PM

      @古旮

      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
      • S
        Scott Sumner
        last edited by Scott Sumner Dec 11, 2018, 1:16 PM Dec 11, 2018, 1:14 PM

        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
        • E
          Eko palypse
          last edited by Dec 11, 2018, 1:16 PM

          I’m too lazy for those things :-D

          Eko

          1 Reply Last reply Reply Quote 2
          • 古
            古旮
            last edited by Dec 14, 2018, 8:47 AM

            Thanks for your help! Really appreciate it!

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