Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    1 貼文 1 Posters 921 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Jason KurantJ
      Jason Kurant
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • 第一個貼文
        最後的貼文
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors