how to: copy selected links into another window

how to: copy selected links into another window

2
NewbieNewbie
2

    Oct 03, 2006#1

    Hi All!
    I have an "how to" issue:

    i have an sql file and i need to extract all the image link as http://www.domain.com/path/path/path/image.jpg

    I used the find command with regular expression like:
    find http://www.domain.com*.jpg

    I can highlight all the items found but... how to copy all items into another windows in one click??
    thank you!
    Fabio

    6,675585
    Grand MasterGrand Master
    6,675585

      Oct 03, 2006#2

      I guess, you will only have the links and not the rest of the lines. So you need a macro for this job. The macro property Continue if a Find with Replace not found must be checked for this macro. Here is the code:

      InsertMode
      ColumnModeOff
      HexOff
      UnixReOff
      Clipboard 9
      ClearClipboard
      Top
      Loop
      Find RegExp "http://www.domain.com*.jpg"
      IfNotFound
      ExitLoop
      EndIf
      CopyAppend
      EndSelect
      Key LEFT ARROW
      Key RIGHT ARROW
      EndLoop
      NewFile
      UnicodeToASCII
      UnixMacToDos
      Paste
      Top
      Find "http:"
      Replace All "^phttp:"
      Bottom
      IfColNum 1
      "Sorry, no image link found!"
      Else
      "
      "
      Top
      DeleteLine
      EndIf
      ClearClipboard
      Clipboard 0
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Oct 03, 2006#3

        Hi Mofi!

        CopyAppend! this is the solution!

        Thank you!
        Fabio