Line number and Column number: GetPosition macro

Help with writing and playing macros

Line number and Column number: GetPosition macro

Postby pur_ » Sat Jul 24, 2004 4:56 pm

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
User avatar
pur_
Newbie
 
Posts: 1
Joined: Fri Jul 23, 2004 11:00 pm

Return to Macros