Install and Run Macros in Textpad Editor

Textpad is a Windows based Text Editor like “Notepad” with more advanced features.

Installation
  1. Unzip the macro and copy it in the default macro location for your Textpad installation.
  2. To know what is the default macro location for your textpad installation:
    (the default location is C:\Documents and Settings\UsrName\Application Data\Helios\TextPad\5.0)

    1. Launch Textpad.
    2. Goto Configure –> Preferences –> Folders
    3. There you can see Macros as a FileType. The location against this FileType is the default location for Macros.
  3. Copy the unzipped macro file (Step 1) at this location.
  4. Restart Textpad editor and goto Configure –> Preferences –> Macros
  5. You can see your macro in the “Macros Available” box.
  6. Select your macro and click “Add”, “Apply”, “Ok”.
  7. To verify the macro installation goto “Macros” menu. You should be able to see your macro as a submenu item there.

You are done with your macro installation.

Running

  1. Open the file on which you want to run the macro.
  2. Select “Macros –> yourMacro”. This will run the macro for the configured range (you can run a macro:
    • on a selection
    • on the complete file
    • etc..
About these ads

2 thoughts on “Install and Run Macros in Textpad Editor

  1. Hi,
    Do you know if I can open textpad from a cmd line and get it to run a macro before closing textpad and returning to the cmd line?

    e.g. textpad.exe jon.txt replace.tpm

    Thanks
    Jon

    Reply
    • Hi Jon,
      Apologies for the delay in responding. Textpad does support a few command line options. But I could not find any related to macros as such. You can see all options by navigating top Help–> Help Topics – Reference Information and choose “Command Line Parameters”. Not having your exact use-case, these might be one of the workarounds:
      1. batch your tasks in a bat file and get your macro’s work done by batch command (rather than a textpad macro), something like this:
      @echo off
      my_nify_exe.exe
      if errorlevel 1 (
      echo Failure Reason Given is %errorlevel%
      exit /b %errorlevel%
      )

      Borrowed from Stackoverflow
      2. See if Macros can be assigned a keyboard shortcut and run the macro using keyboard shortcut

      Maybe if you could share what is your exact requirement, we can find a better solution/workaround :)

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s