Scripts discussion (2)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Posts: 3217
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

Infocatcher
А есть ли какое-то различие в самих экзэшниках? Т.е. есть ли смысл их обзывать по разному?

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

VladSh
Это совсем другой exe, запускающий оригинальный для получения портативности (я так понимаю, там тупо экспорт/импорт веток реестра: сохранить оригинал – записать настройки портативной версии – запустить оригинальное приложение – дождаться закрытия оригинального приложения – сохранить настройки – восстановить исходные настройки).

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Infocatcher
winMergeTabs.js
1. After the end of script execution, on the status bar is "Select tab!".
2. If you run the script, and then try to close AkelPad, it crashes.
3. You can add an additional argument (parameter), to be passed in the command line:

Code: Select all

var cmdLine = '"' + winMerge + '" "' + parameter + '" "' + file + '" "' + file2 + '"';
Then you can use eg. TCMD for comparison:
%COMMANDER_PATH%\TOTALCMD.EXE /S=C file file2

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

KDJ
1. After the end of script execution, on the status bar is "Select tab!".
Correctly restore empty status
In all other cases status bar are correctly restored for me.
2. If you run the script, and then try to close AkelPad, it crashes.
Can't reproduce on Windows 7 x86.
And don't know, how correct this. :(
3. You can add an additional argument (parameter), to be passed in the command line:
Add -cmd argument to allow specify custom command line

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

2. If you run the script, and then try to close AkelPad, it crashes.
Should de better:
Exit message loop, if initial tab was closed

Offline
Posts: 176
Joined: Sat Dec 24, 2011 4:05 pm

Post by F. Phoenix »

KDJ wrote:I tried on WinXP and Win7. Not reproduced.
Hmm... Seems, it's only glitches when using Infocatcher's RunScript.js

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Infocatcher
winMergeTabs.js
Everything works great, thank you very much.

Example call for TCMD:
Call("Scripts::Main", 1, "winMergeTabs.js", '-path="%COMMANDER_PATH%\TOTALCMD.EXE" -cmd="<exe> /S=C <f1> <f2>"')



Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

autoSaveSession.js (experimental)
Automatically saves current session after selection or scroll changes.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Translator.js
Added: text to speech via Google.

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

KDJ wrote:Translator.js

Code: Select all

sTxtListen     = "Прослушать";
sTxtChooseLang = "Вы должны выбрать язык.";
sTxtNoSpeech   = "Прослушивание для данного языка не поддерживается.";

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Translator.js
Updated Chinese-Simplified.lng and Russian.lng.
cnnnc and Infocatcher, thanks very much.

Offline
Posts: 2247
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

ChooseColor.js
Added named colour support by Infocatcher.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

RegExpTestJS.js
Fixed an error in the file RegExpTestJS.ini
Locked