Multi Commander > Support and Feedback

Creating User Defined Menu Items

(1/2) > >>

Pawel:
Hi,
I am new to Multi Commander. But, it will soon change :P
I have a question... I am creating user defined menu, with menu commands (running programs).

I need to open directory in Multi Commander Explorer Panel (not in Windows Explorer).
How to do this?

What I do:
Defining User Command:

  <userdefinedcommand name="Open Directory" id="3c7cf12e862c4b38b1aacf8b25bd61ba" type="external">
    <tip>Open directory...</tip>
    <command>C:\Users\Pawel\Desktop</command>
  </userdefinedcommand>

And use it in Menu:
<menuitem name="Open Directory" id="3c7cf12e862c4b38b1aacf8b25bd61ba"/>

It works, but it open directory in Windows Explorer!
I want to open it in left or right panel of Multi Commander...

I hope it can be done easily...

Thanks for help,
-Pawel



Jungle:
Create User Defined command with type Custom Commands:

--- Code: ---MC.Explorer.Goto PATH="e:\temp"
--- End code ---

In User Commands editor you may view all available commands and their params/

Pawel:
Thanks!
Yes, I found it... I should search better.
-Pawel

Pawel:
More questions is coming...

1. How to get system directories?
I am creating user defined menu where I want to add possibility to open all most important system directories.
Is it possible to use SHGetSpecialFolderPath(https://msdn.microsoft.com/pl-pl/library/windows/desktop/bb762204(v=vs.85).aspx) function to get directories (https://msdn.microsoft.com/pl-pl/library/windows/desktop/bb762494(v=vs.85).aspx) with Multi Commander MultiScript?

If not, how to get those directories (desktop, pictures, music, video, favourites, fonts, my doscuments, system, windows, startmenu, appdata, etc...)

2. I was trying to add & (ampersand) to the user menu (to make it work with keyboard) -> it seems to be impossible... is it?

Thanks for any help,
-Pawel

Jungle:
1. You may get some paths by expanding environment variables like %WINDIR%

2. You may use ampersand in the custom command name

Navigation

[0] Message Index

[#] Next page

Go to full version