Scripts discussion (2)
- Author
- Message
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Divide Multi_SR.js into 2 jscript files
Divide Multi_SR.js into SearchReplace_cml.js and SearchReplace_multi.js.
SearchReplace_cml.js - CommandLine of SearchReplace with Argument(s).
SearchReplace_multi.js - Multi SearchReplace using regular expressions. Need ShowMenuEx.js
Update NumberCount.js
add: Lazy Mode.
add: Hexadecimal num.
add: menu for input $1, \N, \H, \t, \r, \n and \\. (need ShowMenu.js)
fix some bugs.
SearchReplace_cml.js - CommandLine of SearchReplace with Argument(s).
SearchReplace_multi.js - Multi SearchReplace using regular expressions. Need ShowMenuEx.js
Update NumberCount.js
add: Lazy Mode.
add: Hexadecimal num.
add: menu for input $1, \N, \H, \t, \r, \n and \\. (need ShowMenu.js)
fix some bugs.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
cnnnc
NumberCount.js, run time error:
Script: ...\AkelPad\AkelFiles\Plugs\Scripts\NumberCount.js
Line: 782
Probably pText argument is type of number.
SearchReplace_multi.js, run time error:
Script: ...\AkelPad\AkelFiles\Plugs\Scripts\Include\ShowMenuEx.js
Line: 189
Error: Brak definicji "hWndEdit" (not defined)
NumberCount.js, run time error:
Script: ...\AkelPad\AkelFiles\Plugs\Scripts\NumberCount.js
Line: 782
Probably pText argument is type of number.
SearchReplace_multi.js, run time error:
Script: ...\AkelPad\AkelFiles\Plugs\Scripts\Include\ShowMenuEx.js
Line: 189
Error: Brak definicji "hWndEdit" (not defined)
-
Offline
- Posts: 173
- Joined: Mon Dec 06, 2010 9:53 am
- Location: г.Харьков, Русь
KDJ
А Вы будете добавлять в свой мегаплагин ScreenView.js новую возможность AkelPad: - отображать определенные ряды кнопок в ToolBar c многорядным набором кнопок, разделенных BREAK ?
Очень хотелось бы эту настройку задействовать, чтобы иметь один ToolBar.dll и ToolBar.ini (а сейчас у меня их пять)
-----------------
об этом смотрите в описании плагина ToolBar
-----------------
И ещё - нельзя ли параметр FullScreen применять индивидуально к каждому создаваемому View name? (Я применяю увеличенный ряд кнопок, специально для полностью развернутого окна, и применение этого набора обязательно требует FullScreen, причём это может быть как с MenuMain, так и без)
А Вы будете добавлять в свой мегаплагин ScreenView.js новую возможность AkelPad: - отображать определенные ряды кнопок в ToolBar c многорядным набором кнопок, разделенных BREAK ?
Очень хотелось бы эту настройку задействовать, чтобы иметь один ToolBar.dll и ToolBar.ini (а сейчас у меня их пять)
-----------------
об этом смотрите в описании плагина ToolBar
-----------------
И ещё - нельзя ли параметр FullScreen применять индивидуально к каждому создаваемому View name? (Я применяю увеличенный ряд кнопок, специально для полностью развернутого окна, и применение этого набора обязательно требует FullScreen, причём это может быть как с MenuMain, так и без)
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
San_dr
Test version: ScreenView_test.js
FullScreen parameter is intentionally separated.
In this way, one view "MyView" can be obtained on a full screen or on a normal screen:
Call("Scripts::Main", 1, "ScreenView.js", '-View="MyView" -FullScreen=1')
Call("Scripts::Main", 1, "ScreenView.js", '-View="MyView" -FullScreen=0')
Test version: ScreenView_test.js
FullScreen parameter is intentionally separated.
In this way, one view "MyView" can be obtained on a full screen or on a normal screen:
Call("Scripts::Main", 1, "ScreenView.js", '-View="MyView" -FullScreen=1')
Call("Scripts::Main", 1, "ScreenView.js", '-View="MyView" -FullScreen=0')
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Thank you, KDJ!
SearchReplace_multi.js
fix: Change variable "hWndEditCur" to "hWndEdit".
NumberCount.js
fix: CmdLine mode.
fix: First launch of GUI mode.
-
Offline
- Posts: 173
- Joined: Mon Dec 06, 2010 9:53 am
- Location: г.Харьков, Русь
To super!KDJ wrote:San_dr
Test version
Works well. Especially attracts that kind of window is independent of the previous state. My work settles completely. Seen a flaw-after pressing the button to call the plugin (SpecialChar, Log, Lineboard, CodeFold, Clipboard) caused by the plugin window freezes and resets only the Windows Task Manager.
Then some want-if possible-be able to specify a particular "View name" Rows-position Top/Bottom (top or bottom AkelPad)
Спасибо!
=================added later:
Error in (x64) system & (x64)Akelpad
Call("Scripts::Main", 1, "ScreenView.js") =>
-
Offline
- Posts: 173
- Joined: Mon Dec 06, 2010 9:53 am
- Location: г.Харьков, Русь
Oh, I have misled the fact that most of them work on 64-bitKDJ wrote: For now, all my scripts are 32 bit.
=====================
Поработал еще с этим скриптом - я смогу его использовать и в х64 Акеле, - все задачи он выполняет. Не работает только само окно "dialog box with settings", но если создать ScreenView.ini файл в х86 версии Акеля и перетащить его в х64, то все ряды кнопок вызываются и всё ОК!
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
ScreenView.js
Added: Rows parameter for ToolBar plugin.
San_dr
You should not use 32-bit scripts in 64-bit AkelPad. The effects may be unpredictable.
Added: Rows parameter for ToolBar plugin.
San_dr
You should not use 32-bit scripts in 64-bit AkelPad. The effects may be unpredictable.
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
First release of InsertNum.js
InsertNum.js, insert a sequence of numbers. Need Inputbox_function.js.
The numbers can be in Dec or Hex, and they can be set by a fixed width and pad, prefix and subfix string.
The numbers can be in Dec or Hex, and they can be set by a fixed width and pad, prefix and subfix string.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
По причине того, что в файлах параметров знак "=" может быть составным содержимым, в функции getSelectedMenuItem скрипта ShowMenuEx.js изменился принцип задания 2-го параметра. Теперь туда передаётся разделитель (например "=" для обычного "ini") либо "".
В связи с этим изменились: ExecuteScriptMenu.js, ConsoleExec.js, ConsoleRun.js и XMLGetAttrValues.js.
---
Due to the fact that in the parameter files "=" can be part of the contents, in function getSelectedMenuItem changed rules of the task of the 2nd parameter. Now there passed separator (for example "=" for ordinary "ini") or "".
Therefore, change the above scripts.
В связи с этим изменились: ExecuteScriptMenu.js, ConsoleExec.js, ConsoleRun.js и XMLGetAttrValues.js.
---
Due to the fact that in the parameter files "=" can be part of the contents, in function getSelectedMenuItem changed rules of the task of the 2nd parameter. Now there passed separator (for example "=" for ordinary "ini") or "".
Therefore, change the above scripts.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact: