Using "Tool parameter macros" in a clip library

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
morling
Posts: 2
Joined: Tue Jun 22, 2010 9:26 am

Using "Tool parameter macros" in a clip library

Post by morling »

Dear all,

Is it possible in a Clip Library to use the "Tool parameter macros"? I would like to create a clip that can insert the current path using $FileDir into my document. Eg. if the current path is "C:\tmp" the string "C:\tmp" would be inserted on the cursor position. However, I dont know how to make this work.

Best regards,

Peter
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

I don't think you can use the Clip Library for this, but if you're running Vista or Windows 7, there is a roundabout way of doing it using the Tools menu. The idea is to pass the desired tool parameter macro to the DOS echo command and then copy the result to the clipboard with the clip utility.

Here's how to set it up for the $FileDir parameter:
  1. Click Configure and then Preferences.
  2. Click Tools.
  3. Click Add and then DOS Command.
  4. Enter echo and click OK.
  5. Click Apply.
  6. Click the plus sign next to Tools.
  7. Click echo.
  8. In Parameters, change the value to echo $FileDir | clip
  9. Clear all the check boxes and click OK.
To insert $FileDir into your current document:
  1. Click Tools, point to External Tools and then click echo, or press Ctrl+1.
  2. When the DOS window appears, press any key to close it.
  3. Press Ctrl+V to paste.
If you have Windows XP or earlier, you can still use this procedure if you can find a replacement for the clip utility (try here or here, for example).

Andrew
morling
Posts: 2
Joined: Tue Jun 22, 2010 9:26 am

Post by morling »

:o cool it worked. Thanks a lot!
Post Reply