Invoke the "change drive" menu

Far Manager Macro System

Invoke the "change drive" menu


-- Invoke the "change drive" menu on the opposite panel.
-- Make the panel where drive change occurs visible if it was not.
Macro {
  description="Invoke the 'change drive' menu on the opposite panel";
  area="Disks"; key="CtrlM";
  action=function()
    Keys"Esc"
    if not PPanel.Visible then
      Keys(APanel.Left and "CtrlF2" or "CtrlF1")
    end
    Keys"Tab F9 Enter End Enter"
  end;
}