paragraph line break
-
then a new document opens and there you put your runMenuCommands in
-
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
-
@kracovwolf - pythonscript plugin is installed ,correct?
-
yes i created the script too
-
@kracovwolf
ok, then you need multiple lines ofnotepad.runMenuCommand('Macro', 'NAME OF THE MACROS AS SHOWN IN Macro MENU')
-
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. -
i created the macro codes now what? use the run command but what program?
-
@kracovwolf
You use notepad++. Goto Plugins->PythonScript->Scripts
and click your python script. -
nothing happened, nothing in console except the Ready message
-
@kracovwolf
What should the macros do? -
they all change spelling errors and remove junk in subtitle files. i double checked the macro names, cases are fine, spaces too.
-
run one command in the console and see what it returns.
-
it says false.
notepad.runMenuCommand(‘Run’, ‘Subtitle All’)
that is the exact name of one macro -
@kracovwolf said in paragraph line break:
notepad.runMenuCommand('Macro', 'Subtitle All')
-
woo hoo it works. thanks.
-
Great - now I can go to bed, already 1:30 here. Good night
-
Wow. Wow. At least it ended with success. :-)
-
do you know if the macros are stored in notepads settings? i might need to copy everything to another computer
-
Hi @kracovwolf
Yes, macros are stored in
shortcuts.xml
, which in my configuration is located hereC:\Users\<username>\AppData\Roaming\Notepad++\shortcuts.xml
.Have fun!
-
@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 macros section of
- The overview of macros is found at https://npp-user-manual.org/docs/macros/
- The location of config files is described in https://npp-user-manual.org/docs/config-files/