Community
    • Login

    Switch to next file in Macro?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    macros
    3 Posts 2 Posters 956 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.
    • JssampJ
      Jssamp
      last edited by

      I recorded a macro to select all between matching brackets, copy it, switch to the next open document, paste, and a few other minor things before ending. It work OK except switching to next document. It pauses at the prompt for me to click on it. It doesn’t do that when I’m recording the macro, just on playback. My intent was to automate this and run it around 20 times without needing to pause for me to click on the tab switcher.

      Is there a way I can bypass this or make the macro do it. I have only the two files open at the time so there is no confusion which document I want to switch to.

      I’ll thank you for any help you can give me.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Jssamp
        last edited by

        @Jssamp ,

        Try reading this post and the associated thread – it is solving a very similar sequence using the Macro. I think the critical item is to use Ctrl+PageDown for moving to the next tab when recording the macro.

        JssampJ 1 Reply Last reply Reply Quote 1
        • JssampJ
          Jssamp @PeterJones
          last edited by

          @PeterJones Indeed that was the key. I was using Control-Tab to switch tabs. I didn’t know about Control-PageDown. Thank you so much. I spent several hours trying to figure that out, even reading the scintilla source from github. Should have come here first but I wanted to do my due diligence.

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