• Login
Community
  • Login

paragraph line break

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
33 Posts 5 Posters 6.3k 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.
  • 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
                        • E
                          Ekopalypse @kracovwolf
                          last edited by Dec 2, 2020, 12:14 AM

                          @kracovwolf

                          run one command in the console and see what it returns.

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

                            it says false.
                            notepad.runMenuCommand(‘Run’, ‘Subtitle All’)
                            that is the exact name of one macro

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

                              @kracovwolf said in paragraph line break:

                              notepad.runMenuCommand('Macro', 'Subtitle All')
                              
                              1 Reply Last reply Reply Quote 1
                              • K
                                kracovwolf
                                last edited by Dec 2, 2020, 12:21 AM

                                woo hoo it works. thanks.

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

                                  @kracovwolf

                                  Great - now I can go to bed, already 1:30 here. Good night

                                  1 Reply Last reply Reply Quote 3
                                  • A
                                    Alan Kilborn
                                    last edited by Dec 2, 2020, 1:18 AM

                                    Wow. Wow. At least it ended with success. :-)

                                    1 Reply Last reply Reply Quote 1
                                    • K
                                      kracovwolf
                                      last edited by Dec 2, 2020, 10:24 AM

                                      do you know if the macros are stored in notepads settings? i might need to copy everything to another computer

                                      A P 2 Replies Last reply Dec 2, 2020, 10:41 AM Reply Quote 0
                                      • A
                                        astrosofista @kracovwolf
                                        last edited by Dec 2, 2020, 10:41 AM

                                        Hi @kracovwolf

                                        Yes, macros are stored in shortcuts.xml, which in my configuration is located here C:\Users\<username>\AppData\Roaming\Notepad++\shortcuts.xml.

                                        Have fun!

                                        1 Reply Last reply Reply Quote 2
                                        • P
                                          PeterJones @kracovwolf
                                          last edited by Dec 2, 2020, 2:00 PM

                                          @kracovwolf said in paragraph line break:

                                          do you know if the macros are stored in notepads settings

                                          This and other such questions are answered in the npp-user-manual.org website, which is linked inside Notepad++ as the ? menu’s Notepad++ Online Document entry.

                                          • The location of config files is described in https://npp-user-manual.org/docs/config-files/
                                            • The macros section of shortcuts.xml is described at https://npp-user-manual.org/docs/config-files/#macros
                                          • The overview of macros is found at https://npp-user-manual.org/docs/macros/
                                          1 Reply Last reply Reply Quote 4
                                          23 out of 33
                                          • First post
                                            23/33
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors