Community
    • Login

    Add number in each word by Notepad++

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    23 Posts 3 Posters 2.1k 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.
    • CohenmichaelC
      Cohenmichael
      last edited by

      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.

      EkopalypseE 1 Reply Last reply Reply Quote 1
      • EkopalypseE
        Ekopalypse @Cohenmichael
        last edited by Ekopalypse

        @Cohenmichael

        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)
        
        CohenmichaelC 1 Reply Last reply Reply Quote 2
        • CohenmichaelC
          Cohenmichael @Ekopalypse
          last edited by

          @Ekopalypse

          Thank you so much. The script works very well !
          Thanks again for your precious help :)

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors