Add number in each word by Notepad++
-
I tried 2 operations and the script didn’t work.
1st operation: I opened the folder content all documents (.txt) by Folder as WorkSpace, then I clicked execute the script and displayed this message:
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)] Initialisation took 31ms Ready. Traceback (most recent call last): File "C:\Users\yrkj\AppData\Roaming\Notepad++\plugins\Config\PythonScript\scripts\Hello.py", line 107, in <module> user32.SendMessageW(h_systreeview32, TVM_GETITEMW, 0, ctypes.addressof(tvitem)) NameError: name 'h_systreeview32' is not defined
2nd operation :
I opened all documents (.txt) on Notepad++ and I ran the script, no change on all pages, and it didn’t display any message. -
I see, not at my computer but I think if you change this lines it should work.
if 'file_browser_treeview' in window_handles: h_systreeview32 = window_handles['file_browser_treeview'] root_nodes = enumerate_root_nodes(h_systreeview32)
-
Thank you so much. The script works very well !
Thanks again for your precious help :)