Multi Commander > Script
Some misbehaving
Kreator:
OK, I got it about CopyFiles, will try to implement, thank you.
And the view doesn't refresh even after the script finishes. I don't use any debugger. For now the code is
--- Code: ---@var $leftselection = GetSourceFocusPath();
@var $pathparts = PathGetParts($leftselection);
@var $rightdir = StrTrimRight(GetTargetPath(), "\");
@var $leftdrive = StrTrimRight($pathparts[0], ":\");
@var $leftrelpath = StrTrimLeft(StrTrimRight($pathparts[1], "\"), $pathparts[0]);
@var $targetpath = $rightdir ^ $leftdrive ^ $leftrelpath;
CopyFile($targetpath, $leftselection, "");
--- End code ---
It works fine, but I see no result in the opposite pane, I have to press F5 after it finishes. Maybe there's some alternate method of copying, that will refresh the view while it works, like GUI Copy command?
Mathias (Author):
I think it is because the script engine is blocking the UI, So the refresh request is lost
Kreator:
Refreshing after copy works fine now since 4.4.1724.
Thank you!
Navigation
[0] Message Index
[*] Previous page
Go to full version