| View previous topic :: View next topic |
| Author |
Message |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Thu May 17, 2012 6:46 pm Post subject: |
|
|
FileAndStream_functions.js
Fixed: EnumStreams() function.
On WinVista and Win7, function returned incorrect name of NTFS streams.
As a result, it was impossible to perform any operations on streams in script FileAndStream.js.
Required: Scripts plugin ver. 11.0. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun May 20, 2012 5:34 pm Post subject: |
|
|
FileAndStream.js
Added: history of directories and undo/redo.
Fixed: minor bugs.
Changed: *.lng files.
Please also download new version of FileAndStream_functions.js (2012-05-17). |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Mon May 21, 2012 6:32 pm Post subject: |
|
|
VladSh
In script FullScreenWithToolBar.js, can you add: full screen with main menu? |
|
| Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 2507 Location: Киев, Русь
|
Posted: Tue May 22, 2012 9:36 am Post subject: |
|
|
KDJ
Yes, but do not know how to do it.
Actually, I want to change the script so that can further customize the display: statusbar, codefold, explorer, main menu. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Tue May 22, 2012 10:02 am Post subject: |
|
|
VladSh
Try to do something like that:
| Code: | ...
else //Переход из в обычного режима в полноэкранный
{
var oSys = AkelPad.SystemFunction();
var hMainWnd = AkelPad.GetMainWnd();
var hMenu = oSys.Call("user32::GetMenu", hMainWnd);
if (AkelPad.IsPluginRunning(pToolBar))
AkelPad.Call(pToolBar); //без этой строки не работает, т.е. надо сначала отключить тулбар
AkelPad.Call(pFullScreen);
oSys.Call("user32::SetMenu", hMainWnd, hMenu);
// if (!AkelPad.IsPluginRunning(pToolBar)) //если тулбар отключён - включаем
AkelPad.Call(pToolBar);
} |
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Tue May 22, 2012 6:54 pm Post subject: |
|
|
EnumerateWindows_functions.js
Added: EnumTopLevelWindows() function returns also handle to menu assigned to the window.
WindowsList.js
Added: info about handle to menu assigned to the window.
Changed: keyboard shortcut F5 -> F9. |
|
| Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 2507 Location: Киев, Русь
|
Posted: Wed May 23, 2012 9:55 am Post subject: |
|
|
FullScreenWithToolBar.js, по причине доработки функционала, переименован в FullScreenEx.js, изменились правила задания аргументов; прошу прощения за неудобство
KDJ
Thanks!
Есть ограничение (думаю, что оно временное): если запустить скрипт такой строкой:
| Code: | | -"Clipboard + Log" Call("Scripts::Main", 1, "FullScreenEx.js", `-Clipboard=true -Log=true`) | затем выйти из полноэкранного режима, а затем опять вызвать скрипт этой же строкой, то прога падает. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Wed May 23, 2012 5:52 pm Post subject: |
|
|
VladSh
In FullScreenEx.js, I propose to reduce length of argument strings:
Code | Code: | ...
// -"С тулбаром по умолчанию" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar"`)
// -"С панелями для работы с XML" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar-XML" -CodeFold=1`)
// -"Псевдо-SDI" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar" -Menu=1 -StatusBar=1`)
...
var pToolBar = AkelPad.GetArgValue("ToolBar", "");
if (pToolBar)
pToolBar += "::Main";
...
var bLog = AkelPad.GetArgValue("Log", 0);
var bClipboard = AkelPad.GetArgValue("Clipboard", 0);
...
|
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Wed May 23, 2012 8:28 pm Post subject: |
|
|
FileInfo.js
Added: now the script works also in SDI mode. |
|
| Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 2507 Location: Киев, Русь
|
Posted: Thu May 24, 2012 9:08 am Post subject: |
|
|
KDJ
Yes, yesterday was just thinking about it
Changed. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Thu May 24, 2012 6:50 pm Post subject: |
|
|
VladSh
I think, you can still add a dialog box for setting arguments ("FullScreen settings") and saving them in .ini file.
Have you thought about this too?  |
|
| Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 2507 Location: Киев, Русь
|
Posted: Fri May 25, 2012 8:14 am Post subject: |
|
|
KDJ
Save to ini suggests - it's one set, the arguments are much more flexible. I do not consider it appropriate.
Although it is possible to make a other script that will work with the dialogue and save to ini and call my script for basic work. In my opinion, this is the best option. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Fri May 25, 2012 6:41 pm Post subject: |
|
|
VladSh
I don't want to use INI file instead of arguments.
I meant to extend functionality of the script by adding argument "Settings".
If argument "Settings" was not used, the script works as before.
If "-Settings=1" then script reads the variables (bToolBar, bToolBar1, ..., bLog, bClipboard, bExplorer, bCodeFold, bStatusBar, bMenu) from INI file.
If "-Settings=2", the script calls dialog with checkboxes to set the variables and save them in INI file:
------------------------
FullScreen settings
------------------------
Visible:
[v]Menu
[ ]ToolBar
[v]ToolBar1
[ ]ToolBar2
...
[ ]Log
[ ]Clipboard
[ ]Explorer
[v]CodeFold
[ ]StatusBar
----------------------
OK Cancel
---------------------- |
|
| Back to top |
|
 |
|