Multi Commander > Feature Requests and Suggestions

[Request] More Multi-Script functions and multi-tag

(1/1)

wind.stt:
I try to write some User Commands by Multi-Script, it's fine to get the list of seleted files from source pane by GetSelectedPaths, but I cannot find out functions to get focused source file, focused target file, and list of seleted files from target pane.

I think below functions will be useful:

- GetSelectedSourcePaths: =GetSelectedPaths()
- GetFocusedSourcePath: return full path of current seleted file on source pane.
- GetSelectedTargetPaths: return array of seleted files from target pane.
- GetFocusedTargetPath: return full path of current seleted file on target pane.

And more multi-tag: ${focustargetpath}

Mathias (Author):
More script function is definitive needed.
And you got a good point about the functions you mention. I will add something like that for the next beta release.

If you have the need for any more functions just let me know and I will see what I can do.

Mathias (Author):
I have added a some of them now. More will be added later


* GetSourceFocusName();
* GetSourceFocusPath();
* GetTargetFocusName();
* GetTargetFocusPath();
* GetSourceSelectedFileNames();
* GetTargetSelectedFileNames();
* GetSourceSelectedPaths();
* GetTargetSelectedPaths();
* LogDumpArray();
Example.

--- Code: ----------------------------
@var $SourceFocusItemName = GetSourceFocusName();
@var $SourceFocusItemPath = GetSourceFocusPath();
@var $TargetFocusItemName = GetTargetFocusName();
@var $TargetFocusItemPath = GetTargetFocusPath();

Log(0, 10, "SourceFocusItemName : \"" + $SourceFocusItemName + "\"");
Log(0, 10, "SourceFocusItemPath : \"" + $SourceFocusItemPath + "\"");
Log(0, 10, "TargetFocusItemName : \"" + $TargetFocusItemName + "\"");
Log(0, 10, "TargetFocusItemPath : \"" + $TargetFocusItemPath + "\"");


@var $SourceSelectedFilenames = GetSourceSelectedFileNames();
@var $TargetSelectedFilenames = GetTargetSelectedFileNames();
@var $SourceSelectedPaths = GetSourceSelectedPaths();
@var $TargetSelectedPaths = GetTargetSelectedPaths();
LogDumpArray($SourceSelectedFilenames);
LogDumpArray($SourceSelectedPaths);
LogDumpArray($TargetSelectedFilenames);
LogDumpArray($TargetSelectedPaths);
------------------------------------------

--- End code ---

Output in application log window is


--- Code: ---2011-07-30 16:02:09.146 SourceFocusItemName : "notepad.exe"
2011-07-30 16:02:09.147 SourceFocusItemPath : "C:\Windows\System32\notepad.exe"
2011-07-30 16:02:09.149 TargetFocusItemName : "System32"
2011-07-30 16:02:09.151 TargetFocusItemPath : "C:\Windows\System32"
2011-07-30 16:02:09.158 ==[ Variable : $SourceSelectedFilenames ]==
2011-07-30 16:02:09.158 [0] : "notepad.exe"
2011-07-30 16:02:09.158 [1] : "npmproxy.dll"
2011-07-30 16:02:09.158 [2] : "nrpsrv.dll"
2011-07-30 16:02:09.158 [3] : "nshhttp.dll"
2011-07-30 16:02:09.159 [4] : "nshipsec.dll"
2011-07-30 16:02:09.159 [5] : "nshwfp.dll"
2011-07-30 16:02:09.159 [6] : "nsi.dll"
2011-07-30 16:02:09.159 ===========================
2011-07-30 16:02:09.159 ==[ Variable : $SourceSelectedPaths ]==
2011-07-30 16:02:09.160 [0] : "C:\Windows\System32\notepad.exe"
2011-07-30 16:02:09.160 [1] : "C:\Windows\System32\npmproxy.dll"
2011-07-30 16:02:09.160 [2] : "C:\Windows\System32\nrpsrv.dll"
2011-07-30 16:02:09.161 [3] : "C:\Windows\System32\nshhttp.dll"
2011-07-30 16:02:09.162 [4] : "C:\Windows\System32\nshipsec.dll"
2011-07-30 16:02:09.162 [5] : "C:\Windows\System32\nshwfp.dll"
2011-07-30 16:02:09.162 [6] : "C:\Windows\System32\nsi.dll"
2011-07-30 16:02:09.163 ===========================
2011-07-30 16:02:09.163 ==[ Variable : $TargetSelectedFilenames ]==
2011-07-30 16:02:09.164 [0] : "Setup"
2011-07-30 16:02:09.164 [1] : "ShellNew"
2011-07-30 16:02:09.164 [2] : "System32"
2011-07-30 16:02:09.165 [3] : "SysWOW64"
2011-07-30 16:02:09.166 ===========================
2011-07-30 16:02:09.166 ==[ Variable : $TargetSelectedPaths ]==
2011-07-30 16:02:09.167 [0] : "C:\Windows\Setup"
2011-07-30 16:02:09.167 [1] : "C:\Windows\ShellNew"
2011-07-30 16:02:09.167 [2] : "C:\Windows\System32"
2011-07-30 16:02:09.168 [3] : "C:\Windows\SysWOW64"
2011-07-30 16:02:09.168 ===========================

--- End code ---

wind.stt:
thank you, that will be great enhacement for Multi-Script, so, when will we able to try the version for that enhancement?

Mathias (Author):
The latest beta already have them

How To Get Beta

Navigation

[0] Message Index

Go to full version