Multi Commander Support Forum

Multi Commander => Script => Topic started by: Matthias515566 on April 04, 2016, 08:47:59

Title: New Tab on Target Panel with File/Folder Focus Path
Post by: Matthias515566 on April 04, 2016, 08:47:59
New Tab on Target Panel with File/Folder Focus Path
Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
Show the Focus File/Folder Path on Target Panel
Code: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"
Title: Why works this not?
Post by: Matthias515566 on April 28, 2016, 13:31:30
I wad going to make this bcommand better, but it donĀ“t work.
Code: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel LEFT

Maybe someone have a idea how to make this work.
Title: Re: New Tab on Target Panel with File/Folder Focus Path
Post by: Mathias (Author) on April 28, 2016, 14:24:27
What is not working ?

Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGETOpen a new tab that will show the path of the file in focus.

What do you want to happen?
Title: Re: New Tab on Target Panel with File/Folder Focus Path
Post by: Mathias (Author) on April 29, 2016, 19:21:43
Ahh wait..
You want to open a new tab with path X, but KEEP the current panel as active.. ?

Then you had it almost correct
Code: [Select]
MC.SetActivePanel PANEL=INACTIVE(you forgot the PANEL= part)
and you need INACTIVE because the first command NewBrowser or Goto Will steal focus..
Title: Re: New Tab on Target Panel with File/Folder Focus Path
Post by: Matthias515566 on April 30, 2016, 09:12:48
Thank you very much. Now it works. Yes i forget "Panel=". And "INACTIVE" is not in the documentation.

Folder-Path without new tab on the other side:
Code: [Select]
MC.Explorer.Goto TARGET="${focusfilepath}"
MC.SetActivePanel PANEL=INACTIVE
Folder-Path in a new Tab on the other side:
Code: [Select]
MC.Explorer.NewBrowser PATH="${focusfilepath}" SIDE=TARGET
MC.SetActivePanel PANEL=INACTIVE