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 

Scripts plugin
Goto page Previous  1, 2, 3 ... 48, 49, 50 ... 53, 54, 55  Next
 
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
KDJ



Joined: 06 Mar 2010
Posts: 1373
Location: Poland

PostPosted: Tue Dec 04, 2012 8:27 pm    Post subject: Reply with quote

Instructor
Thank you very much, it works perfectly.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Sat Dec 08, 2012 1:31 pm    Post subject: Reply with quote

Xephon wrote:
Akelpad 4.7.9 x64
При попытке поиска с помощью SearchReplace.js возникает ошибка Error: 'nDirection' - не является числом. Возникает, только если есть файл SearchReplace.ini. Если его стереть, поиск идет без ошибок.
См. версию 12.2.
Back to top
View user's profile Send private message Send e-mail
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Sat Dec 08, 2012 1:34 pm    Post subject: Reply with quote

Исправлено: возврат результата методом ScriptSettings().Read на Win7 x64.

Fixed: returning result by method ScriptSettings().Read on Win7 x64.


Scripts plugin v12.2
Back to top
View user's profile Send private message Send e-mail
Xephon



Joined: 03 Jun 2008
Posts: 124

PostPosted: Sat Dec 08, 2012 2:41 pm    Post subject: Reply with quote

Ошибка исчезла. Спасибо большое.
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2610
Location: Киев, Русь

PostPosted: Fri Dec 21, 2012 12:27 pm    Post subject: Reply with quote

Instructor
При передаче параметра `-ToolBar=["ToolBar", "1"]` в FullScreenEx.js возникает ошибка, т.к. GetArgValue почему-то режет аргументы по пробелу; это можно увидеть, если после
if (Toolbars) {
поставить
WScript.Echo(Toolbars);
Можно ли поправить GetArgValue, чтобы оно разрезало как положено: первый переметр брало сразу после первого "-", а остальные через " -"? А то внутри параметров ведь может быть пробел, и в скрипт попадёт (и сейчас, на этом примере, попадает) некорректное значение.
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Wed Dec 26, 2012 8:48 am    Post subject: Reply with quote

VladSh
Quote:
`-ToolBar='["ToolBar", "1"]'`
Back to top
View user's profile Send private message Send e-mail
VladSh



Joined: 29 Nov 2006
Posts: 2610
Location: Киев, Русь

PostPosted: Wed Dec 26, 2012 9:45 am    Post subject: Reply with quote

Instructor
Спасибо. Сначала не знал, как с этим справиться, пришлось делать ещё один eval, чтобы убрать внешние кавычки.
Back to top
View user's profile Send private message Visit poster's website
Infocatcher



Joined: 06 Aug 2007
Posts: 1620

PostPosted: Mon Feb 18, 2013 9:37 am    Post subject: Reply with quote

Баг?
Code:
var hWndEdit = AkelPad.GetEditWnd();
AkelPad.SendMessage(AkelPad.GetMainWnd(), 273 /*WM_COMMAND*/, 4101 /*IDM_FILE_NEW*/, 0);
AkelPad.SetSel(0, -1);
AkelPad.ReplaceSel("bug");

AkelPad.SetEditWnd(hWndEdit);
WScript.Echo(AkelPad.GetTextRange(0, -1));

Выводит "bug" вместо содержимого исходной вкладки.
Back to top
View user's profile Send private message Visit poster's website
Infocatcher



Joined: 06 Aug 2007
Posts: 1620

PostPosted: Mon Feb 18, 2013 1:13 pm    Post subject: Reply with quote

В режиме PMDI будет выведена пустая строка от нового документа:
Code:
var hMainWnd = AkelPad.GetMainWnd();
var hWndEdit = AkelPad.GetEditWnd();
var lpFrame = AkelPad.SendMessage(hMainWnd, 1288 /*AKD_FRAMEFIND*/, 1 /*FWF_CURRENT*/, 0);
AkelPad.SendMessage(hMainWnd, 273 /*WM_COMMAND*/, 4101 /*IDM_FILE_NEW*/, 0);
WScript.Echo(AkelPad.GetEditFile(hWndEdit));
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1373
Location: Poland

PostPosted: Mon Feb 18, 2013 7:18 pm    Post subject: Reply with quote

Infocatcher
In PMDI mode is only one edit window: http://akelpad.sourceforge.net/forum/viewtopic.php?p=18747&highlight=#18747
Back to top
View user's profile Send private message
Infocatcher



Joined: 06 Aug 2007
Posts: 1620

PostPosted: Tue Feb 19, 2013 6:05 am    Post subject: Reply with quote

KDJ
Thanks!

But
Code:
var lpFrameOrig = AkelPad.SendMessage(hMainWnd, 1288 /*AKD_FRAMEFIND*/, 1 /*FWF_CURRENT*/, 0);
setRedraw(hMainWnd, false);

AkelPad.SendMessage(hMainWnd, 1285 /*AKD_FRAMEACTIVATE*/, 0, lpFrame);
...

AkelPad.SendMessage(hMainWnd, 1285 /*AKD_FRAMEACTIVATE*/, 0, lpFrameOrig);
setRedraw(hMainWnd, true);

function setRedraw(hWnd, bRedraw) {
   AkelPad.SendMessage(hWnd, 11 /*WM_SETREDRAW*/, bRedraw, 0);
   bRedraw && oSys.Call("user32::InvalidateRect", hWnd, 0, true);
}
looks ugly. Sad
Back to top
View user's profile Send private message Visit poster's website
Infocatcher



Joined: 06 Aug 2007
Posts: 1620

PostPosted: Sun Apr 07, 2013 7:18 pm    Post subject: Reply with quote

Опечатка в новой версии:
Scripts-Eng.txt
Code:
    0x08  //DBG_MEMLEAK    Debug memory leak.
    0x10  //DBG_SYSCALL    Debug memory leak.
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Mon Apr 08, 2013 5:18 am    Post subject: Reply with quote

Infocatcher
Поправлено.
Back to top
View user's profile Send private message Send e-mail
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Mon Apr 08, 2013 6:22 am    Post subject: Reply with quote

Добавлено: возможность задавать тип отладки (см. описание типов в методе AkelPad.Debug) глобально через диалог скриптов. При этом, если в скрипте встречается метод AkelPad.Debug, то текущий тип отладки меняется на указанный в методе.
Добавлено: новый тип отладки в метод AkelPad.Debug - отладка вызова системных функций.

Added: ability to specify the type of debugging (see description of types in AkelPad.Debug method) globally through the scripts dialog. Herewith, if in a script meets AkelPad.Debug method, then the current debug type will be changed to a specified in method.
Added: new debug type in AkelPad.Debug method - system function call debug.


Scripts plugin v12.3
Back to top
View user's profile Send private message Send e-mail
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5381

PostPosted: Sat May 11, 2013 5:00 am    Post subject: Reply with quote

Добавлено: для метода Exec() поддержка переменных окружения и переменной %a - директория AkelPad'а.

Added: for method Exec() support for environment variables and %a variable - AkelPad directory.


Scripts plugin v12.4
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 -> Plugins All times are GMT
Goto page Previous  1, 2, 3 ... 48, 49, 50 ... 53, 54, 55  Next
Page 49 of 55

 
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