Community
    • Login

    Add number in each word by Notepad++

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    23 Posts 3 Posters 4.9k 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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors