Open file and reuse existing akelpad window

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 17
Joined: Sat Dec 08, 2007 12:45 pm
Contact:

Open file and reuse existing akelpad window

Post by guest »

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

Post by Instructor »

OpenFile.js

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)
}
Post Reply