You are here: PSPad forum > English discussion forum > Re: Macros in pspad

Re: Macros in pspad

#1 Macros in pspad

Posted by: idefix2 | Date: 2024-11-21 13:13 | IP: IP Logged

pspad includes a macro manager, but even with the online help, I don't look through.

Is it possible to write a macro that searches for a regex pattern in the file like "\bMyVar=(\d\d\d)" and increments the number found (regex subexpression) by 1?

Options: Reply | Quote | Up ^


#2 Re: Macros in pspad

Posted by: pspad | Date: 2024-11-21 17:41 | IP: IP Logged

Macro manager handles macro record and run - sequence of editing in editor.

For your purposes use pspad scripting capabilities

Options: Reply | Quote | Up ^


#3 Re: Macros in pspad

Posted by: idefix2 | Date: 2024-12-26 17:40 | IP: IP Logged

Where can I find some example scripts to see how scripting works in PSPad? I have looked for something, but not found.

Options: Reply | Quote | Up ^


#4 Re: Macros in pspad

Posted by: pspad | Date: 2024-12-26 17:58 | IP: IP Logged

Scripring.rtf file in PSPad folder
Scripting in the help file

Options: Reply | Quote | Up ^


#5 Re: Macros in pspad

Posted by: idefix2 | Date: 2024-12-27 19:08 | IP: IP Logged

Thank you. I now had a second look at the example scripts, and while most of them are not really helpful for what I need, I found one script that is useful for me smiling smiley

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2026 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR