Is there a way to disable word wrap from the command line?
I tried /command(4209) but that just toggles word wrap on/off. I want to force word wrap off when I run AkelPad from specific scripts.
disable word wrap from command line
- Author
- Message
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
FrizzleFry
Maybe
Save as WordWrapOff.js and try
Maybe
Code: Select all
var oSet = AkelPad.ScriptSettings();
var nWordWrap;
if (oSet.Begin("", 0x61 /*POB_READ|POB_PROGRAM*/))
{
nWordWrap = oSet.Read("WordWrap", 1 /*PO_DWORD*/);
oSet.End();
if (nWordWrap == 1)
AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/);
}
Code: Select all
AkelPad.exe /Call("Scripts::Main", 1, "WordWrapOff.js")
Last edited by Skif_off on Thu Dec 01, 2016 6:51 am, edited 2 times in total.
-
Offline
- Posts: 2247
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
FeyFre
Не только скрипта, смотрите описание:
Не только скрипта, смотрите описание:
Code: Select all
0x20 //POB_PLUGS Настройки плагина, pScriptBaseName - имя плагина без расширения.
0x40 //POB_PROGRAM Настройки программы, pScriptBaseName - игнорируется.
Last edited by Skif_off on Thu Dec 01, 2016 6:52 am, edited 1 time in total.
-
Offline
- Posts: 6
- Joined: Wed Apr 29, 2009 7:57 pm
That did not seem to have any effect.
I put the WordWrapOff.js script in
D:\tools\AkelPad\AkelFiles\Plugs\Scripts
here is my command line...
D:\tools\AkelPad\AkelPad.exe /Call("Scripts::Main", 1, "WordWrapOff.js") /x file1 file2
I'll mess with it some to see if I can get it to work but this seems incredibly complicated for something that should be pretty simple. I really do not see the point of a command line option to toggle word wrap. There should be separate commands to enable and disable it.
I put the WordWrapOff.js script in
D:\tools\AkelPad\AkelFiles\Plugs\Scripts
here is my command line...
D:\tools\AkelPad\AkelPad.exe /Call("Scripts::Main", 1, "WordWrapOff.js") /x file1 file2
I'll mess with it some to see if I can get it to work but this seems incredibly complicated for something that should be pretty simple. I really do not see the point of a command line option to toggle word wrap. There should be separate commands to enable and disable it.