Multi Commander > Support and Feedback
Copying path to clipboard with forward slashes
Jungle:
1. There is Multi-Script Debugger under Help menu
2. To see output in the Log window you should use Log function
3. $arr is Array, so in order to use it with StrReplace function you should either convert it to string or go through array in a loop.
UPD. Unfortunately, StrLinesArray2String function doesn't work for me, or maybe i use it incorrectly. So, probably, the only way is to make a loop. Maybe Mathias has the right solution.
Mathias (Author):
Try this.
@var $arr = GetSelectedPaths();
@var $str = StrLinesArray2String($arr);
$str = StrReplace($str, "\" , "/");
SetClipboardText($str)
(You can compress it into two lines.)
@var $arr = GetSelectedPaths();
SetClipboardText( StrReplace( StrLinesArray2String( $arr ) , "\" , "/" ) );
Jungle:
--- Quote from: Mathias (Author) on January 18, 2013, 13:07:18 ---@var $str = StrLinesArray2String($arr);
--- End quote ---
That is why it didn't work for me. Declaration in the docs differs:
--- Code: ---<str> StrLinesArray2String(<array> input, <num> eol);
--- End code ---
Mathias (Author):
Second parameter is optional so should work both with and without it.
(I will update the doc abort it being optional. )
Jungle:
--- Quote from: Mathias (Author) on January 18, 2013, 13:30:20 ---Second parameter is optional so should work both with and without it.
--- End quote ---
Very strange - now it works. Some time ago i got Error -1.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version