Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7319
    reginald
    Participant

    Hi,
    is there a way to create a macro that makes it possible to use a find-function and a sendkeys-function (shell.SendKeys( “{BACKSPACE}” )) in one text-file?
    I want to combine pairs of two lines of text to one line. The second line of the pairs always starts with the same character (here “:”) and should be placed after the first line of the pairs.
    Sample:

    AAA
    :BBB

    CCC
    :DDD

    EEE
    :FFF

    Here follows how I want to have the text after using a macro:

    AAA:BBB

    CCC:DDD

    EEE:FFF

    Can anyone give me the syntax of the macro, please?

    Thanks a lot in advance…

    #7320
    zhouzh2
    Participant

    No need for macros.
    Press CTRL + H
    find: “n(:.*)”
    replace with : “1”
    check use regular expressions
    replace all
    Done

    #7323
    reginald
    Participant

    Thanks a lot… :-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.