Menu

Macro Recording

2008-01-08
2012-11-13
  • Nobody/Anonymous

    I found N++ for the first time today and I was amazed at the number of features. It has about anything anyone could want. I found it because I was looking for an editor with text macro capibilities. This is definitely it!! I have found that recording all keystrokes is extremely easy, but there are some cases where I would like to use the Find and Fine/Replace functions in a macro. Is there a way to do this? I can't seem to find the information in either the FAQs or the Forum. Thanks in advance for any help.

     
    • Greg Bullock

      Greg Bullock - 2008-01-08

      At present, the macros record keystrokes, and some menu commands, but only to the edit window, not to any of the dialogs (such as the Find/Replace dialogs).  Sometimes you can work around this by prepopulating the boxes in the Find dialog, close the dialog before you begin recording your macro, then record <F3> as one of the macro keystrokes.  If you're not playing the macro right away, then before playback you'll need to ensure that Find/Replace dialog's boxes are populated properly first.

      Alternatively, you can use the Simple Script plugin, which has considerably more flexibility.

      Regards.
      Greg

       
    • Nobody/Anonymous

      It works as you described. I haven't tried the Simple Script plugin yet, but I will try it soon. Thanks for your help Greg.

       
    • fidvo

      fidvo - 2008-01-08

      Yes, you should definitely try out Simple Script.  I wrote it specifically for that purpose: because macros can't store Find/Replace settings, and I wanted a way to string together a bunch of replaces, and save them for future use.

      The main limitation of Simple Script is that it only works for text processing, not for program control.  So if you need to run the replace as part of a sequence that includes other options, like opening a file, navigating between tabs, etc. then I'm afraid you're out of luck.

      As long as all you want to do is process all or part of the document, Simple Script works great.

       
    • Nobody/Anonymous

      No, I don't have a need for program control... only text processing. When I said that I would try the Simple Script plugin I thought it would be located in the Plugin dropdown on the menu line, but not so. Where do I find the Simple Script plugin? Thank you for your help.

      Regards, Don Matt.

       
    • Nobody/Anonymous

      I found Simple Script plugin and it is awsome! Very powerful. Many thanks for pointing me to this plugin. Many regards, Don Matt