Community
    • Login

    Need to run a macro on a file as it is opened

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 887 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.
    • Jason KurantJ
      Jason Kurant
      last edited by

      I am programmatically opening Notepad++ from within a VB6 app (the only dev tool I can get on this machine). I am actually opening three XML files that are part of an interface between System A and System B.

      System A makes XML A, WebMethods makes XML B, and System B returns XML C. I want to open all three files, which I can easily do this with command-line arguments. But then I need to press Ctrl-Shift-Alt-B to reformat the XML using a plug-in. I have not been able to send keystrokes to the application, probably due to new restrictions in the operating system. In the past, I had been able to use “SendKeys” from VB to send that keystroke.

      Is there some way to fire off the macro? Maybe with ghost typing? Couldn’t figure out how to send special characters like Ctrl-Shift-Alt-B.

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