Open file and reuse existing akelpad window
- Author
- Message
-
Offline
- Posts: 17
- Joined: Sat Dec 08, 2007 12:45 pm
- Contact:
Open file and reuse existing akelpad window
Would you add a command line option or internal command so that the Favorite menu can open file in current window even when akelpad in running in SDI mode.
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
OpenFile.js
ContextMenu:
Code: Select all
var AkelPad=new ActiveXObject("AkelPad.document");
if (WScript.Arguments.length)
{
AkelPad.OpenFile(WScript.Arguments(0));
}
ContextMenu:
Code: Select all
"F&avourites" Index(3)
{
-"File1" Call("Scripts::Main", 1, "OpenFile.js", "C:\SCANDISK.LOG", 0)
-"File2" Call("Scripts::Main", 1, "OpenFile.js", "C:\file.txt", 0)
}