Note that it searches sub menus, so I think you need to call it with "Line
Operations", "Sort Lines Ascending" - or whatever the French equivalent is
(the text needs to be exact, including accents, dashes, spaces etc)
I try that :notepad.menuCommand("Édition", "Trier les lignes dans l'ordre lexicographique croissant")
but fail !
How I can see the last command statement from Notepad++ ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don(t see in ENUM tab of the documentation where you can find Menu Edit → Line Operations → Sort Lines in Ascending / Descending Order.
Because my Notepad is in French and other statement don't work...
I look for that !
You want "runMenuCommand"
http://npppythonscript.sourceforge.net/docs/latest/notepad.html#Notepad.runMenuCommand
Note that it searches sub menus, so I think you need to call it with "Line
Operations", "Sort Lines Ascending" - or whatever the French equivalent is
(the text needs to be exact, including accents, dashes, spaces etc)
On Mon, 18 Dec 2017, 08:40 Marc Pechaud, marco105@users.sf.net wrote:
I try that :
notepad.menuCommand("Édition", "Trier les lignes dans l'ordre lexicographique croissant")
but fail !
How I can see the last command statement from Notepad++ ?
Yees , that's run with : notepad.runMenuCommand("Ligne", "Trier les lignes dans l'ordre lexicographique croissant")
All right !