Page 1 of 1
How can I pass a search term to AkelPad?
Posted: Sat Mar 21, 2026 9:51 am
by Native2904
Hello,
I’m a new AkelPad user (I discovered it via the Total Commander forum) and I’d like to ask if it’s possible to pass a search term to AkelPad when opening a file.
For example, I want AkelPad to open a file and automatically highlight the searched word.
I’m using Everything to find files containing specific content, and I want to open them directly in AkelPad.
https://imgur.com/5o16q4V
I'm trying something like this..
Code: Select all
C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\AkelPad.exe "%1" "<REGEXREPLACE:<REGEXEXTRACT:$search:,"content:(\x22([^\x22]*)\x22|\S+)">,"\x22","">"
But AkelPad asks me if I want to create the file instead.
Soll die neue Datei C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\,search:) erstellt werden?
Thank you in advance!
Re: How can I pass a search term to AkelPad?
Posted: Sat Mar 21, 2026 11:50 am
by DV
For example:
Code: Select all
AkelPad.exe /x "AkelFiles\Docs\AkelHelp-Eng.htm" "/Call('Scripts::Main', 7, `AkelPad.TextFind(0, '<h3>Command line parameters</h3>', 0x00200001)`)"
Re: How can I pass a search term to AkelPad?
Posted: Sat Mar 21, 2026 5:29 pm
by Native2904
2DV
Thank you for your response
I have read the AkelPad4 - Help ..
But I can not to figure out how i can pass a Term to them.
I'm not a programmer.
The nearest solution i became is something like this:
C:\tcmd\plugins\wlx\TCAkelPad\AkelPad64\AkelPad.exe /Command(4158)

Re: How can I pass a search term to AkelPad?
Posted: Sat Mar 21, 2026 9:26 pm
by DV
Did you try to run my example?
The part '<h3>Command line parameters</h3>' is the "find what" term. You can replace it with any string you want.
Re: How can I pass a search term to AkelPad?
Posted: Sat Mar 21, 2026 10:57 pm
by Native2904
DV wrote: ↑Sat Mar 21, 2026 9:26 pm
Did you try to run my example?
The part '<h3>Command line parameters</h3>' is the "find what" term. You can replace it with any string you want.
Okay, now I understand, and I managed to get it working — thank you very much for the tip.
Re: How can I pass a search term to AkelPad?
Posted: Sat Apr 25, 2026 9:46 am
by Native2904
DV wrote: ↑Sat Mar 21, 2026 9:26 pm
Did you try to run my example?
The part '<h3>Command line parameters</h3>' is the "find what" term. You can replace it with any string you want.
Hi,
I wanted to ask if it is possible to use the clipboard content as a search value,
for example to search for the clipboard text inside a file.
I have tried many different ways, but unfortunately it doesn’t work.
Thank you in advance!
Re: How can I pass a search term to AkelPad?
Posted: Sat Apr 25, 2026 8:27 pm
by DV
I haven't succeeded as well.
From the "AkelPad\AkelFiles\Docs\Scripts-Eng.txt", the `AkelPad.GetClipboardText()` should do the job, but I could not make it work from the command line. Maybe I'm missing something.
Re: How can I pass a search term to AkelPad?
Posted: Sun Apr 26, 2026 1:42 pm
by DV
Thanks to
Instructor, here is the version that works:
Code: Select all
AkelPad.exe /x "AkelFiles\Docs\AkelHelp-Eng.htm" "/Call('Scripts::Main', 1, 'EvalCmd.js', `var text=AkelPad.GetClipboardText(); AkelPad.TextFind(0, text, 0x00200001)`)"
Re: How can I pass a search term to AkelPad?
Posted: Sat May 02, 2026 9:47 am
by Native2904
Sorry for the late reply.
Thank you very much for your help