How can I pass a search term to AkelPad?

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 4
Joined: Sat Mar 21, 2026 9:09 am

How can I pass a search term to AkelPad?

Post 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!

DV
Offline
Posts: 1313
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post 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)`)"

Offline
Posts: 4
Joined: Sat Mar 21, 2026 9:09 am

Re: How can I pass a search term to AkelPad?

Post 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)
:?

DV
Offline
Posts: 1313
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post 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.

Offline
Posts: 4
Joined: Sat Mar 21, 2026 9:09 am

Re: How can I pass a search term to AkelPad?

Post 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.

Offline
Posts: 4
Joined: Sat Mar 21, 2026 9:09 am

Re: How can I pass a search term to AkelPad?

Post 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!

DV
Offline
Posts: 1313
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post 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.

DV
Offline
Posts: 1313
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: How can I pass a search term to AkelPad?

Post 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)`)"
Post Reply