Open AkelPad from Command Line - @Line #123

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 4
Joined: Sun Nov 13, 2022 8:46 pm
Location: State College
Contact:

Open AkelPad from Command Line - @Line #123

Post by ajaxStardust »

Hello.

I like AlelPad and would like to set it as the default text editor for some applications, such as "GREPwin" (or whatever) where it might be a text processing app that can offer to open a text editor a XYZ line number in the processed text file.

I looked through "AlekPad 4" /Docs/AkelHelp-Eng.htm , but I don't see anything specific to it.

E.g. as might be placed here:
Image
https://www.dropbox.com/s/wzbv6emhyzxxz ... .55.38.png
https://www.dropbox.com/s/wzbv6emhyzxxz ... 8.png?dl=0

Thank you!

(P.S. is it just me, or is DropBox really not very good at sharing images!?)

Offline
Posts: 1879
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

ajaxStardust
Command line (and yes, not intuitive):
/If(`SendMain(1204 /*AKD_GOTO*/, 0x1 /*GT_LINE*/, '%L:%C')`, ``, ``)

%L – line number
%C – column number

Offline
Posts: 4
Joined: Sun Nov 13, 2022 8:46 pm
Location: State College
Contact:

Re: Open AkelPad from Command Line - @Line #123

Post by ajaxStardust »

Hi there. Thank you for this reply!
tried it straight from the command line (w/out as i'd explained above from another app), and it works fine.
wow. that's unexpected syntax. :)

placed it in the app, grepWin
Image
For convenience of anyone else reading this thread, that command line is:

Code: Select all

C:\Portable\AkelPad\AkelPad.exe /OpenFile("%path%") /If(`SendMain(1204 /*AKD_GOTO*/, 0x1 /*GT_LINE*/, '%line%:%C')`, ``, ``)

Curious: what args would go into the two empty params at the end?

This is what i'd tried per the help file:

Code: Select all

>AkelPad.exe /OpenFile("AkelPad.ini") /Command(4162)
which does open the file, and the "go to line" dialog. not what i wanted, but i was getting somewhere at least. :)

I didn't realize anyone had replied to this. haha. didn't realize i'd already asked, 'cause i was just coming here to ask the same thing! searched, and found my own question.
doh!
I'll have to check my forum settings.
Post Reply