Community
    • Login

    Switch to next file in Macro?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    macros
    3 Posts 2 Posters 1.3k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          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