RECORD AND PLAY TEXTPAD MACROS

 

RECORD AND PLAY TEXTPAD MACROS
 
 
There are plenty of text editors, the most commonly used is the windows microsoft notepad. Although notepad is so widely used but notepad does not offer the power of macros. Notepad is good for basic text editing 
 
Textpad is a powerful editor which has a very cool feature of macros.
 
The following article will demonstrate how textpad macros can be so helpful for editing files.
 
Lets take a very simple example, We have a file which looks like this
 
 
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
THIS TUTORIAL IS BROUGHT TO YOU BY MAINFRAMEWIZARD.COM
 
 
 
and we want to change this file to 
 
 
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
THIS,TUTORIAL,IS,BROUGHT,TO,YOU,BY,MAINFRAMEWIZARD.COM
 
 
We can do this by using Textpad macros.
 
 
Step 1: Open the file which you wish to edit in textpad.
 
Step 2: Go to menu item "MACROS" and select "RECORD"
 
textpad macros
Step 3: Now do the actions on one record which you wish to 
perform on the entire file.
 
In our case we will put a comma at the end of each word and 
once we reach the end of first record we will press 
"Down Arrow" key and "Home Key" so that we are at the start of 
second record.
 
 
Step 4: Now go to Menu item "MACROS" and select "STOP RECORDING"
stop recording macro
 
Step 5: When you select "STOP RECORDING" you will be prompted with a 
window like below, asking you to verify if you wish to save the macro
press "YES"
 
stop recording macro
 
Step 6: Once you press "YES" you will be prompted to give the name of 
the macro and its scope. 
 
name textpad macro
You can enter a name in "File Name", "Display Name" and select the
relevant choice for "Default Play Mode"
 
Here I have given the name as MYMAC in both File name and Display name
and selected "Repeat to end of file" as default play mode.
 
Step 7: Now your macro is saved, you can execute it by going to Menu item
"MACROS" and select the name of the macro you just saved.
 
play the textpad macro
 
In this case I have selected "MYMAC"
 
 
Once the macro has run you will see that your file is changed to desired
output
 
 
Here is a Video explaining the above steps.
 
 

 

If you do not have this wonderful software you can download text pad by following the link textpad download and follow the instructions on the the textpad website to install textpad.

Comments

I was trying to edit a text file where I needed to delete every other 1st and 2nd line, and this your explanation worked perfectly for it. Thanks again!