Line number and Column number: GetPosition macro

Line number and Column number: GetPosition macro

1
NewbieNewbie
1

    Jul 24, 2004#1

    I looked for %line% and %col% analogy in macro. Thanks Bernd's solution in the yet not existing IDM forum anymore I've survived.

    Now I found new possibility which works without the file size limits:

    I configured Advanced -- Tool "GetPosition" as:
    echo /%line%/%col%
    with options (x)Create New File, [x] Capture Output,

    and created macro GetPosition as

    InsertMode
    ColumnModeOff
    HexOff
    UnixReOff
    Clipboard 9
    ClearClipboard
    RunTool "GetPosition"
    StartSelect
    SelectLine
    Key LEFT ARROW // It is because ECHO adds space to output
    Key LEFT ARROW
    EndSelect
    Cut
    CloseFile NoSave // If you find better capturing of output, let me know
    Paste
    Clipboard 0
    ExitMacro


    I'm hoping that Ian will release way, how to use the %xx variables via template or macro.

    Pavel