AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open file and reuse existing akelpad window

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Dec 2007
Posts: 17

PostPosted: Tue Jun 09, 2009 9:45 am    Post subject: Open file and reuse existing akelpad window Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Tue Jun 09, 2009 12:18 pm    Post subject: Reply with quote

OpenFile.js
Code:
var AkelPad=new ActiveXObject("AkelPad.document");

if (WScript.Arguments.length)
{
  AkelPad.OpenFile(WScript.Arguments(0));
}



ContextMenu:
Code:
"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)
}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group