Author Topic: [Request] More Multi-Script functions and multi-tag  (Read 18653 times)

wind.stt

  • Newbie
  • *
  • Posts: 5
    • View Profile
[Request] More Multi-Script functions and multi-tag
« on: July 29, 2011, 19:52:08 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [Request] More Multi-Script functions and multi-tag
« Reply #1 on: July 30, 2011, 13:43:12 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [Request] More Multi-Script functions and multi-tag
« Reply #2 on: July 30, 2011, 16:04:40 »
I have added a some of them now. More will be added later

  • GetSourceFocusName();
  • GetSourceFocusPath();
  • GetTargetFocusName();
  • GetTargetFocusPath();
  • GetSourceSelectedFileNames();
  • GetTargetSelectedFileNames();
  • GetSourceSelectedPaths();
  • GetTargetSelectedPaths();
  • LogDumpArray();

Example.
Code: [Select]
-------------------------
@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);
------------------------------------------

Output in application log window is

Code: [Select]
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 ===========================

wind.stt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: [Request] More Multi-Script functions and multi-tag
« Reply #3 on: August 07, 2011, 05:37:30 »
thank you, that will be great enhacement for Multi-Script, so, when will we able to try the version for that enhancement?
« Last Edit: August 07, 2011, 05:39:09 by wind.stt »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [Request] More Multi-Script functions and multi-tag
« Reply #4 on: August 07, 2011, 09:47:47 »
The latest beta already have them

How To Get Beta