Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Pawel

Pages: [1] 2
1
Beta Releases / Re: v16.0 Beta
« on: July 02, 2026, 14:32:20 »
Script was working fine in 15.8. It will fail if users update MC to 16.
For sure, the problem is in Script Language.
Would be great if you find why current script fails...


I confirm. Your workaround works fine!

-Pawel

2
Beta Releases / Re: v16.0 Beta
« on: July 02, 2026, 11:43:15 »
@Mathias (Author)

I would like to report that MC 16 beta breaks custom scripts/commands.
Configuration:
\UFM\MC\Config\CustomConfigPaths.xml
<CustomConfigPaths>
  <ConfigFileRedirect>
    <ConfigFile File="UserMenu.xml" Redirected="..\UFM\1045\UserMenu.xml" />
    <ConfigFile File="QuickLaunch.xml" Redirected="..\UFM\1045\QuickLaunch.xml" />
    <ConfigFile File="QuickLaunch2.xml" Redirected="..\UFM\1045\QuickLaunch2.xml" />
    <ConfigFile File="CustomKeymappings.xml" Redirected="..\UFM\1045\CustomKeymappings.xml" />
  </ConfigFileRedirect>
  <AdditionalScriptFolders>
    <ScriptFolder Name="UFM" Path="..\UFM\1045\Scripts" Recursive="1" />
  </AdditionalScriptFolders>
</CustomConfigPaths>

1. File -> CustomKeymappings.xml
<keymap>
  <map extid="" ctrl="0" udc="29e331d5dbe5444eabcdcb37ba409a6b" key="F1" keymod=""/>
  <map extid="" ctrl="0" udc="985cf4f5c21d4014ac0382da45e3e3a0" key="F10" keymod="CA"/>
  <map extid="" ctrl="0" udc="a568468079cb4dc5b5123487d908e891" key="F3" keymod=""/>
  <map extid="" ctrl="0" udc="a568468079cb4dc5b5123487d908e892" key="F4" keymod=""/>
</keymap>

F10, F3, F4 shortcuts NOT working anymore!
Example F3 Action:
Log says:
2026-07-02 11:38:02.277 Script engine info  => Variable "$i" created
2026-07-02 11:38:02.277 Script engine error => Variable "$text + '"' + $arr" not found
2026-07-02 11:38:02.277 Script engine error => Failed to process token - "$text"
2026-07-02 11:38:02.277 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"
2026-07-02 11:38:02.277 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"
2026-07-02 11:38:02.277 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"



2. Redirected xml files works fine (UserMenu.xml, QuickLaunch.xml, QuickLaunch2.xml) - but if you click on custom button that is connected with custom script (..\UFM\1045\Scripts) - script is not working, probably not called... so nothing happens.

Example button test (selecting few files on the list and pressing button that should call my app with parameters (those selected files).
Here is my multiscript:
@var $text = "";
@var $arr = GetSelectedPaths();
@var $cnt = arrayCount($arr)

for($i = 0; $i < $cnt; $i++)
{
  if($i == 0)
    {
      $text = $text + '"' + $arr[$i] + '"';
    }
  else
   {
    $text = $text + " " + '"' + $arr[$i] + '"';
   }
}

MC.Run CMD="${mcinstallpath}\..\AppManager.exe" STARTIN="${mcinstallpath}\..\" ARG="/OPEN {$text}"

Here is MC log:
2026-07-02 11:39:30.273 Script engine info  => Variable "$i" created
2026-07-02 11:39:30.273 Script engine error => Variable "$text + '"' + $arr" not found
2026-07-02 11:39:30.273 Script engine error => Failed to process token - "$text"
2026-07-02 11:39:30.273 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"
2026-07-02 11:39:30.273 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"
2026-07-02 11:39:30.273 Script engine error - Line : 8, Error : -1 => Code : "$text = $text + '"' + $arr[$i] + '"'"


This is MAJOR issues. Please take a look at this. Everything was working in current MC 15.8
You can test it with latest UFM (https://www.dropbox.com/scl/fi/apwhkbpcdnr4aayrkq5bp/UFM_15.5.exe?rlkey=mfpor3adcqqglc28zaqlucjox&dl=1)
-Pawel

3
Anyone has better way to open MC and select given file in specified panel?

4
My current code:

MCParams := '-AutoRun="SelectFile"';
ShellExecute(0, 'open', PChar(MC_PATH), PChar(MCParams), nil, SW_SHOWNORMAL);

##########################################
#Name:SelectFile
#Type:multiscript
#ID:3dc58130a89d422c841855e79ab4c6bd
#Desc:File Selection
#Options:
##########################################

@var $TmpPath = TranslateEnvString("%temp%") + "\MC_PARAM.tmp";
@var $FileContent;
@var $DirectoryPath;
@var $SelectedFile;

if(FileExists($TmpPath) == 1)
{
   $FileContent = LoadStringFromFile($TmpPath);
   @var $Lines = StrSplit($FileContent, "\r\n");
   $DirectoryPath = $Lines[0];
   $SelectedFile = $Lines[1];
   DeleteFile($TmpPath, "NODIALOG, SILENT, NOPROGRESS");
      
   #@var $text = "TEMP: " + $TmpPath + "\n" + "DIR: " + $DirectoryPath + "\n" + "FILE: " + $SelectedFile;
   #MessageBox("PARAMS", $text, 0);
   
   MC.SetActivePanel PANEL=RIGHT      
   MC.Explorer.Goto PATH="{$DirectoryPath}"
   MC.Explorer.SetItemFocus ITEM="{$SelectedFile}"
}
else
{
   MessageBox("Error!", "Parameters not found!", 0);
}

So, I run MC with autorun parameter and save into temp a file with directory path and file name.
Script is reading this temp file, deleting it and set right panel with our directory path.

STILL selecting a file NOT WORKING!

Edit: Sometimes works, when adding Sleep() and SetSourceSelected(). But it depends on machine load... sometimes MC have no time to refresh list of files in panel, or something...

   Sleep(1500);
   MC.Explorer.SetItemFocus ITEM="{$SelectedFile}"
   @var $arr[] = {$SelectedFile};
   SetSourceSelected($arr, 1);

But, there must be better way... @Mathias (Author) ?

-Pawel


5
This MC command line works
MCParams := Format('-AutoRun="SelectFile" "%s" "%s"',  [MCDirectory, MCFileName]);
ShellExecute(0, 'open', PChar(MC_PATH), PChar(MCParams), nil, SW_SHOWNORMAL);

Script (SelectFile) is called.
For now I am not trying to select RIGHT PANEL and select file.
The problem is PARAMETERS. I am passing -AutoRun, and 2 others (Dir path and File name)

But, I have no idea how to display param 0 and param 1 values
This should work - but I got empty strings:

##########################################
#Name:SelectFile
#Type:multiscript
#ID:3dc58130a89d422c841855e79ab4c6bd
#Desc:File Selection
#Options:
##########################################

@var $DirectoryPath = ${param:0};
@var $SelectedFile = ${param:1};

@var $msg0 = "DIR : " + {$DirectoryPath};
@var $msg1 = "FILE : " + {$SelectedFile};

MessageBox("PARAM, $msg0, 0);
MessageBox("PARAM, $msg1, 0);

MessageBox shows empty string... so, the first problem is here... detecting parameters

The problem must be in command line - either MC not support -AutoRun<script> with other parameters or I pass other parameters in wrong way...

-Pawel
   

6
I want to run Multi Commander via external application.
This application runs MC and pases 2 parameters. A directory path and file name.
I want to focus on RIGHT panel (for example) and select this file in this directory.
How to do this?

I see Multi Commander support -Autorun parameter that allows to run a script.
Here is my UDC script:

I need to run Multi Commander with specified

##########################################
#Name:SelectMyFile
#Type:function
#ID:3dc58130a89d422c841855e79ab4c6bd
#Desc:File Selection
#Options:Confirm
##########################################

MC.Explorer.Goto PANEL=RIGHT PATH="${param:0}" ItemFocus="${param:1}"



Multi Commander is running with this code (Delphi):
           
MCParams := '-AutoRun="SelectMyFile ' + '""' + DIRECTORY_PATH + '"" ' + '""' + FILE_NAME_WITH_EXT + '"""';
ShellExecute(0, 'open', PChar(PATH_TO_MULTI_COMMANDER), PChar(MCParams), PChar(EmptyStr), SW_SHOWNORMAL);

It should work, but it is not!
What do I do wrong?

-Pawel

7
I hate XML files. Editing it is a pain.
I know it allows to add more information in one tag... but INI files are so simple (I guess to simply) and fast...
-Pawel

8
Beta Releases / Re: 15.7 BETA - Fails to show all command in menu
« on: December 20, 2025, 15:23:05 »
  -- 3127 - 2025-12-17 ( 17-Dec-2025 )

  ADDED - Increased the max number of UserDefinedCommands that can be registered for Menu/Toolbar from 600 to 950

I can confirm this fixes the problem.
-Pawel

9
Beta Releases / Re: Re: 15.7 BETA - Fails to show all command in menu
« on: December 15, 2025, 16:35:56 »
OK. Thank you for your patient.
Please, try to find the problem. It is very, very important.

Here is a prepared environment (MC 15.6 + UFM Custom Menus) with all my custom items. 
https://www.dropbox.com/scl/fi/dg9k0kf2rfqj9igeo62kv/MC.zip?rlkey=s7bdfsridi1c72rsiqw7afq8r&dl=1

File that defines paths: \MC\Config\CustomConfigPaths.xml
Menu File: \MC\UFM\1033\UserMenu.xml
Scripts: \MC\UFM\1033\Scripts\UFM.zip

Here, menu that is not displaying items:
- System -> Windows System
- System -> Windows Apps (UWP)
- System -> Windows PowerShell
- Ultimate File Manager

-Pawel

10
Beta Releases / Re: Re: 15.7 BETA - Fails to show all command in menu
« on: December 15, 2025, 15:58:50 »
Loading them, but all (none?) is not registered as menu commands. so they do not show up in the menu.
Strange that it works in 15.6, I find now difference in the code for how it load that in 15.7 vs 15.6

Most of my Custom Commands works fine (I only showed in example what is going on). Only few of them not (but as you can see all of them are available in custom commands dialog).
NO - it is not working ALSO in 15.6 (screenshot is not from newest beta)!
-Pawel

11
Beta Releases / Re: Re: 15.7 BETA - Fails to show all command in menu
« on: December 15, 2025, 15:04:18 »
Wait...
Commands are loaded into MC, but not displayed.
See attached image (in red frame example command - Loaded - but not displayed)
-Pawel

Ps: The problem is - It sometimes working OK. Still trying to find better "issue explanation"

12
Beta Releases / Re: Re: 15.7 BETA - Fails to show all command in menu
« on: December 15, 2025, 14:35:17 »
Mathias,
I forgot about log! It clearly describe the problem.

2025-12-15 14:32:13.314 Can not register command. Limit of UserDefinedCommand reached [HASH - Command Name]
2025-12-15 14:32:13.332 Can not register command. Limit of UserDefinedCommand reached [[HASH - Command Name]
etc...

So, I hope you can fix it (increase limit).
-Pawel

13
Beta Releases / Re: 15.7 BETA - Fails to show all command in menu
« on: December 14, 2025, 23:14:30 »
After update to 15.7 Beta custom menu items (not everything) stopped working (not displayed).
All scripts (*.udc files) are stored in zip file (everything was fine with the same files/config in 15.6)
-Pawel

Can you describe the error more..

You got custom commands. that they are added to menu..  And they are not showing up ? Are not running when selected.  ? Are script command there if you list all commands. ( was they loaded ? )

@Mathias (Author)
I think I know what is the problem with Menu and Custom Commands. I reproduced it on Stable Multi Commander 15.6!
I got MANY commands (many custom menu items) - 627 files in 54 folders (in my Ultimate File Manager project). Is there a LIMIT? It seems it is.

If I left 443 (or more) udc files in script folder - no custom menu items are displayed. If I remove another few of them - lets say 5 -> 5 custom command is shown in menu.
That means that MC reads only specified amount of files...


-Pawel

14
Beta Releases / Re: 15.7 BETA
« on: December 08, 2025, 14:16:35 »
Can you describe the error more..
You got custom commands. that they are added to menu..  And they are not showing up ? Are not running when selected.  ? Are script command there if you list all commands. ( was they loaded ? )

Mathias,
It is working now (however, tested on another copy - I already deleted  broken installation). Maybe update process broke something?
Hard  to answer if custom menu commands was loaded or not (did not check it). It was "empty menu" - not showing up.

@total_annihilation00
My custom commands are OK. Thx. It was working before update. I think (see above) something must have broken during the beta update.


Will test it more... maybe I can reproduce the problem. For now - all is working.
-Pawel

15
Beta Releases / Re: 15.7 BETA
« on: December 07, 2025, 22:17:06 »
After update to 15.7 Beta custom menu items (not everything) stopped working (not displayed).
All scripts (*.udc files) are stored in zip file (everything was fine with the same files/config in 15.6)
-Pawel

16
Support and Feedback / ButtonBar Size (DPI > 100%)
« on: September 05, 2025, 12:31:19 »
@Mathias (Author),
Could you please take a look at my screenshot? I think there is a problem with size (scaling) of additional Button Bar - ButtonBar is a bit to small (height). Icons looks great, but are too low (or bar is to small). See the red frame (attachement).
I use 144DPI (150%).

Short video: https://www.dropbox.com/scl/fi/pwqxpkp3pw597jgv85nau/MC.mp4?rlkey=56roxpn6i64uxe8mf8mfd4pvh&dl=1

-Pawel

17
Beta Releases / Re: v14.6 BETA
« on: January 30, 2025, 14:23:41 »
@Mathias (Author)

Is it possible to set custom color of Multi Commander Window in Dark Mode?
It is #383838 (RGB 56/56/56) now...
Or Titlebar background.

I preffer a bit darker, like for example ->#191919 (RGB 25/25/25)

-Pawel

18
Beta Releases / Re: v14.6 BETA
« on: January 25, 2025, 11:01:31 »
Yeah, right, compatibility.

EDIT: I already changed my code. It is working like as charm.
Thank you for adding those Environment Variables to MC. Waiting for Final Release :)

Will you consider adding MC Handle as another Environment Variable?

I got it using the following code (I also check the path of the process with this handle).
Handle := FindWindow('MultiCommander MainWnd', nil);
Would be much easier if I could get it from MC :)

-Pawel



19
Beta Releases / Re: v14.6 BETA
« on: January 25, 2025, 10:17:30 »
  ADDED - MC will set enovirment variables for the MC EXE and Path. So all programs MC start will see this enviroments variables.

Thanks for adding this!
However, what are then names of this environments?

I checked MultiCommander.exe process in Process Explorer and I see those:

COMMANDER_EXE
COMMANDER_PATH
(The same as Total Commander)

and

MULTICOMMANDER_EXE
MULTICOMMANDER_PATH

I will use those MULTICOMMANDER_*
Question. Why you also added variables with the same name as Total Commander does?

-Pawel



20
Beta Releases / Re: Version 12 * RC *
« on: August 10, 2022, 16:14:05 »
Mathias,
Thank you for your point of view.

I will check your idea with script. Sounds interesting!
-Pawel

21
Beta Releases / Re: Version 12 * RC *
« on: August 10, 2022, 11:08:36 »
Yes, it always fit. But how about get current screen resolution and set window width and height proportionally and place window centered?

22
Beta Releases / Re: Version 12 * BETA *
« on: August 09, 2022, 17:21:25 »
Mathias,
Could you please improve displaying Multi Commander window on first run?
On my monitor (2k, 2560x1440) main window is NOT centered.

Mathias,
Have you try to improve displaying Multi Commander main window?
I would like to remind you, that the window is still not centered. Window is not proportional.
Take a look how it looks on 2K resolution after installation (on first run). See attachement image.
As you can see - MC window is not centered.

Left edge distance (163px) is different then Right Edge distance (491px). Top edge distance (156px) is different then Bottom Edge distance (212px)
How about making it proportional for each resolution?

-Pawel

23
Beta Releases / Re: Version 12 * BETA *
« on: June 08, 2022, 19:19:31 »
It is something like "Preview Panel". In Total Commander it is displayed in external window, but can be also displayed in Panel (like on my screenshots).
In TC it can be extended by plugins...


24
Beta Releases / Re: Version 12 * BETA *
« on: June 08, 2022, 10:41:03 »
Mathias,
Hover Data Functionality.

It looks promising... However, did you think about implementing such feature, like Total Commander Lister?
User select element in one panel and all related information is displayed in second panel (different information for different file type/content). Something what you did in "Hover Data".
"Lister" is better, as it can be shown imediately and can show much more info (Panel window is bigger)...

How do you think?

25
Beta Releases / Re: Version 12 * BETA *
« on: June 08, 2022, 10:13:59 »
Mathias,
Could you please improve displaying Multi Commander window on first run?
On my monitor (2k, 2560x1440) main window is NOT centered.

The window is moved to top and left.
Also, would be nice if window has some proportinal size (now, it is much wider). Take a look at screenshot.

Best regards,
-Pawel

Pages: [1] 2