I have the following script:
@var $dst = GetTargetFocusPath();
@var $src = GetSourceFocusPath();
CopyFile( $dst, $src, "" );
Target focused path is E:\temp\_mc_test\1, source focused path is E:\temp\_mc_test\2.
Debugger shows:
$dst string E:\temp\_mc_test\1
$src string E:\temp\_mc_test\2
Bug #1. When dialog appears, target path is E:\temp\_mc_test\ instead of E:\temp\_mc_test\1 (so if "NODIALOG" parameter is passed to CopyFile, error occurs "...Can not copy a file to itself").
Bug #2. MC crashes when [Cancel] button is pressed in this copy dialog. It happens if copy was called from debugger.
Now assign this script to a QuickLaunch button. Enable Allow - Rearrange of buttons option for QL bar.
Bug #3. After copy dialog appears, this button will move over QL bar following mouse cursor (even if cursor is outside QL). Now:
a) if you press Esc copy dialog will be closed and the button will take new position;
b) if you click somewhere outside QL bar the button will take previous position and keep focus cursor around itself;