Scripts discussion (2)
- Author
- Message
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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).
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).
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
Updated: FileAndStream_2052.lng by cnnnc.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
VladSh
Try to do something like that:
Try to do something like that:
Code: Select all
...
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);
}
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
FullScreenWithToolBar.js, по причине доработки функционала, переименован в FullScreenEx.js, изменились правила задания аргументов; прошу прощения за неудобство
KDJ
Thanks!
Есть ограничение (думаю, что оно временное): если запустить скрипт такой строкой:затем выйти из полноэкранного режима, а затем опять вызвать скрипт этой же строкой, то прога падает.
KDJ
Thanks!
Есть ограничение (думаю, что оно временное): если запустить скрипт такой строкой:
Code: Select all
-"Clipboard + Log" Call("Scripts::Main", 1, "FullScreenEx.js", `-Clipboard=true -Log=true`)
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
FileInfo.js
Added: now the script works also in SDI mode.
Added: now the script works also in SDI mode.
-
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:
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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
----------------------
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
----------------------