• Login
Community
  • Login

Switch to next file in Macro?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
macros
3 Posts 2 Posters 1.0k 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.
  • J
    Jssamp
    last edited by Jun 9, 2021, 1:01 PM

    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.

    P 1 Reply Last reply Jun 9, 2021, 1:36 PM Reply Quote 0
    • P
      PeterJones @Jssamp
      last edited by Jun 9, 2021, 1:36 PM

      @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.

      J 1 Reply Last reply Jun 9, 2021, 1:48 PM Reply Quote 1
      • J
        Jssamp @PeterJones
        last edited by Jun 9, 2021, 1:48 PM

        @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
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors