Menu

[all ver.] save macro does not work

fakeraol
2007-05-27
2012-11-13
  • fakeraol

    fakeraol - 2007-05-27

    win2k pro sp4
    on all tested versions of npp save my macro does not work:

    record macro
    search
    replace
    ü -> ü
    replace all
    <- x tokens are replaced
    ok
    close
    stop recording

    "playback" & "save current recorded macro" are disabled.

    second question: where will macros be saved and may i edit them by hand?
    where may i edit/delete them?

     
    • Greg Bullock

      Greg Bullock - 2007-05-28

      Without testing whether the macro-saving problem is generally reproducible, I can tell you that the macro in question will not work. 

      At present, macros record only
      - keystrokes made to the edit window and
      - a few, probably most, menu commands,

      They do not record button clicks and keystrokes to dialog boxes, such as the search and replace. 

      Sometimes you can work around this by priming the search/replace dialog before recording your macro, then in recording the macro use <F3> (Find Next) where applicable.

      Regards.
      Greg

       
      • Nobody/Anonymous

        How would I go about recording a macro for several consecutive search&replace jobs? Or is this impossible?

        I regularly use Notepad++ to clean up texts, running several search/replace job like fakeraol's ü to &uuml; in a row. It would be great if I could just record a macro instead of going through the same steps time and time again.

         
        • Greg Bullock

          Greg Bullock - 2007-06-28

          Alas, that is not possible as far as I know.  That is, the macro can record the <F3> keystroke, to repeat the last search/replace, but it cannot store the search/replace strings (or populate the search/replace fields) for you.

          Regards.
          Greg