• Login
Community
  • Login

paragraph line break

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
33 Posts 5 Posters 6.8k 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.
  • K
    kracovwolf
    last edited by Dec 1, 2020, 10:39 PM

    Hmm I don’t know a lot about code but I have edited firefox scripts before.

    E 1 Reply Last reply Dec 1, 2020, 10:41 PM Reply Quote 0
    • E
      Ekopalypse @kracovwolf
      last edited by Ekopalypse Dec 1, 2020, 10:43 PM Dec 1, 2020, 10:41 PM

      @kracovwolf

      It’s easy. Install the plugin via Plugin Manager,
      then create a new script via Plugins-PythonScript->New script.
      Give it a meaningful name and save.
      Add mulitple lines

      notepad.runMenuCommand('Run', 'NAME OF THE MACROS AS SHOWN IN RUn MENU')
      

      done, well - save it and run it via Plugins->PythonScript->scripts…

      1 Reply Last reply Reply Quote 1
      • K
        kracovwolf
        last edited by Dec 1, 2020, 11:13 PM

        PyNPP? I installed it but no option to create a script?

        E 1 Reply Last reply Dec 1, 2020, 11:18 PM Reply Quote 1
        • E
          Ekopalypse @kracovwolf
          last edited by Dec 1, 2020, 11:18 PM

          @kracovwolf - no, PythonScript plugin - it is called PythonScript. :-)

          1 Reply Last reply Reply Quote 0
          • K
            kracovwolf
            last edited by kracovwolf Dec 1, 2020, 11:23 PM Dec 1, 2020, 11:23 PM

            I realized i didn’t have plugin manager. i was using plugin admin. but the plugin manager doesnt have a list. tried ticking untested plugins, there was an error

            E 1 Reply Last reply Dec 1, 2020, 11:24 PM Reply Quote 1
            • E
              Ekopalypse @kracovwolf
              last edited by Dec 1, 2020, 11:24 PM

              @kracovwolf - sorry for confusion. I don’t know why I still use the term Plugin Manager when it should be Plugin Admin

              1 Reply Last reply Reply Quote 0
              • E
                Ekopalypse
                last edited by Dec 1, 2020, 11:26 PM

                441bc588-5994-4b7a-b07d-541ebeca13d9-image.png

                1 Reply Last reply Reply Quote 1
                • K
                  kracovwolf
                  last edited by Dec 1, 2020, 11:32 PM

                  turns out i had to update npp to see the plugin. but when creating a new script its asking me for a .py file. i assume this is where i create a txt file and rename the extension?

                  E 1 Reply Last reply Dec 1, 2020, 11:33 PM Reply Quote 0
                  • E
                    Ekopalypse @kracovwolf
                    last edited by Dec 1, 2020, 11:33 PM

                    @kracovwolf - just provide a name and keep the py extension

                    1 Reply Last reply Reply Quote 0
                    • E
                      Ekopalypse
                      last edited by Dec 1, 2020, 11:34 PM

                      then a new document opens and there you put your runMenuCommands in

                      1 Reply Last reply Reply Quote 0
                      • K
                        kracovwolf
                        last edited by Dec 1, 2020, 11:43 PM

                        im sorry… trying hard to follow your directions but i’m lost. when you say multiple lines, do you mean empty lines to add to the new document, or copies of the code you provided? i’m also confused about “run menu” Again i apologize

                        E 1 Reply Last reply Dec 1, 2020, 11:44 PM Reply Quote 0
                        • E
                          Ekopalypse @kracovwolf
                          last edited by Dec 1, 2020, 11:44 PM

                          @kracovwolf - pythonscript plugin is installed ,correct?

                          1 Reply Last reply Reply Quote 0
                          • K
                            kracovwolf
                            last edited by Dec 1, 2020, 11:47 PM

                            yes i created the script too

                            E 1 Reply Last reply Dec 1, 2020, 11:48 PM Reply Quote 0
                            • E
                              Ekopalypse @kracovwolf
                              last edited by Ekopalypse Dec 1, 2020, 11:49 PM Dec 1, 2020, 11:48 PM

                              @kracovwolf
                              ok, then you need multiple lines of

                              notepad.runMenuCommand('Macro', 'NAME OF THE MACROS AS SHOWN IN Macro MENU')
                              
                              1 Reply Last reply Reply Quote 0
                              • E
                                Ekopalypse
                                last edited by Dec 1, 2020, 11:53 PM

                                You can test if the command has been successfully sent if you
                                execute it via the console like I did in the first screenshot.
                                It has to return true. If false appears then something is wrong with your command.

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kracovwolf
                                  last edited by Dec 2, 2020, 12:01 AM

                                  i created the macro codes now what? use the run command but what program?

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    Ekopalypse
                                    last edited by Ekopalypse Dec 2, 2020, 12:03 AM Dec 2, 2020, 12:02 AM

                                    @kracovwolf
                                    You use notepad++. Goto Plugins->PythonScript->Scripts
                                    and click your python script.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kracovwolf
                                      last edited by Dec 2, 2020, 12:06 AM

                                      nothing happened, nothing in console except the Ready message

                                      E 1 Reply Last reply Dec 2, 2020, 12:07 AM Reply Quote 0
                                      • E
                                        Ekopalypse @kracovwolf
                                        last edited by Dec 2, 2020, 12:07 AM

                                        @kracovwolf
                                        What should the macros do?

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kracovwolf
                                          last edited by Dec 2, 2020, 12:13 AM

                                          they all change spelling errors and remove junk in subtitle files. i double checked the macro names, cases are fine, spaces too.

                                          E 1 Reply Last reply Dec 2, 2020, 12:14 AM Reply Quote 0
                                          14 out of 33
                                          • First post
                                            14/33
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors