something like this:
when I click the hyperlink
C:\Program Files\AkelPad\AkelPad.exe" /Call("Scripts::Main", 1, "EvalCmd.js", "AkelPad.SetSel(42, 1000)")
in Akelpad, I want Akelpad can execute the command! I hope Akelpad can jump to the specified position with hyperlink!
Feature Request :execute cmd with the hyperlink,plz!
- Author
- Message
-
Offline
- Posts: 15
- Joined: Mon Aug 08, 2011 6:20 am
Feature Request :execute cmd with the hyperlink,plz!
Last edited by yyzh829 on Mon Aug 08, 2011 10:30 am, edited 1 time in total.
-
Offline
- Posts: 15
- Joined: Mon Aug 08, 2011 6:20 am
-
Offline
- Posts: 15
- Joined: Mon Aug 08, 2011 6:20 am
中国的!握手啊,Akelpad很好用啊!自定义快捷键是神器啊!cnnnc wrote:OpenEveryLine.js
-
Offline
- Posts: 15
- Joined: Mon Aug 08, 2011 6:20 am
URL#nSelStart:nSelEnd ,select the URL,then set this js a hotkey!
Code: Select all
var URL = AkelPad.GetSelText().match(/.+(?=#)/g);
var nSelStart = AkelPad.GetSelText().match(/([^#:](?!.*\#)(?=.*\:))+/g);
var nSelEnd= AkelPad.GetSelText().match((/([^:](?!.*\:))+/g));
AkelPad.OpenFile(URL);
AkelPad.SetSel(nSelStart, nSelEnd);
-
Offline
- Posts: 15
- Joined: Mon Aug 08, 2011 6:20 am
this is how to generate the URL:
Code: Select all
AkelPad.SetClipboardText(AkelPad.GetEditFile(0)+"#"+AkelPad.GetSelStart()+":"+AkelPad.GetSelEnd());