Recent Posts

Pages: [1] 2 3 4 5 ... 10
1
Support and Feedback / Re: Weird file names display
« Last post by Mathias (Author) on Yesterday at 09:27:26 »
MC do not process filenames in anyway.. they are send them to Windows rendering call to be drawn the same way they are read from disk (from another Windows call)
More likely it is some windows issue, Because the window text draw engine is loaded into each process that is rendering text in the Windows UI. But I can't check for that since I can't reproduce it



2
Support and Feedback / Re: Weird file names display
« Last post by nietrupek on Yesterday at 06:23:44 »
MC just tell window to draw the unicode string. MC does not process., It is using Window built in support for drawing unicode strings.
So the problem is outside of MC's control, somewhere in external library.

Sorry, I have to revive this thread. The problem *is* somehow MC-related. No matter what font I use, MC distorts file names. Moreover, if I close MC and restart it, filenames are displayed differently.

The same filenames are displayed properly in all terminal-based apps I have at hand: cmd, Cygwin's bash or Power Shell. No matter what fonts I use. Modern apps like File manager, browsers, etc. all display filenames correctly, too.
3
Script / Re: [SCRIPT] Set As Background Wallpaper (Stretched etc.)
« Last post by total_annihilation00 on February 14, 2026, 20:04:50 »
Found a better & more improved (& much faster) version of this script thanks to an updated Generative AI ! Use this instead (as old one is kept for pure posterity)…

claude-opus-4-6-thinking AI Generated:::
PowerShell Script (SetWallpaperMCStretch.ps1)
Code: [Select]
param([string]$ImagePath)

# Validate file exists
if (-not (Test-Path $ImagePath)) {
    Write-Error "File not found: $ImagePath"
    exit 1
}

# Set style: Stretch
Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name WallpaperStyle -Value '2'
Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name TileWallpaper -Value '0'

# Apply wallpaper via Win32 API
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class Wallpaper {
    [DllImport("user32.dll", CharSet = CharSet.Auto)]
    public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
}
"@ -ErrorAction SilentlyContinue

# SPI_SETDESKWALLPAPER = 0x0014 (20)
# SPIF_UPDATEINIFILE | SPIF_SENDCHANGE = 3
[Wallpaper]::SystemParametersInfo(20, 0, $ImagePath, 3)

<#
Style Reference:
  Stretch : WallpaperStyle=2,  TileWallpaper=0
  Fill    : WallpaperStyle=10, TileWallpaper=0
  Fit     : WallpaperStyle=6,  TileWallpaper=0
  Center  : WallpaperStyle=0,  TileWallpaper=0
  Tile    : WallpaperStyle=0,  TileWallpaper=1
  Span    : WallpaperStyle=22, TileWallpaper=0
#>

MultiScript (Custom Command)
Code: [Select]
@var $imgPath = GetSourceFocusPath();
@var $scriptPath = "C:\\Path\\To\\SetWallpaperMCStretch.ps1";
@var $arguments = "-ExecutionPolicy Bypass -WindowStyle Hidden -File \"" + $scriptPath + "\" -ImagePath \"" + $imgPath + "\"";
MC.Run CMD="powershell.exe" ARG="{$arguments}" FLAGS="NOWAIT|NOCONSOLE";

Notes (if you want other styles later)
These registry values are the ones Windows uses:
  • Stretch: WallpaperStyle=2, TileWallpaper=0 (used above)
  • Fill: WallpaperStyle=10, TileWallpaper=0
  • Fit: WallpaperStyle=6, TileWallpaper=0
  • Center: WallpaperStyle=0, TileWallpaper=0
  • Tile: WallpaperStyle=0, TileWallpaper=1

These are just quality-of-life tweaks. The core SystemParametersInfo approach remains the right one.
4
Support and Feedback / Re: How to make a path use a different order
« Last post by Ozzy1 on February 13, 2026, 23:32:59 »
Ok! Thanx :)
Crossing fingers for the future, but until then, lets do the ctrl-dance  :)
5
Support and Feedback / Re: How to make a path use a different order
« Last post by Mathias (Author) on February 13, 2026, 23:24:05 »
Currently you can't set different settings by folder.. something like that are planed..

But you can switch sort column with Ctrl+F1 to Ctrl+F5  (Filename column Ctrl+F1 , date Ctrl+F4 if it is the 4th column)
6
Support and Feedback / How to make a path use a different order
« Last post by Ozzy1 on February 13, 2026, 16:02:48 »
Hi!
Probably a totally newbie question, but how can I make different path's show the files in different order?
Lets say I have a "Download"-folder. In here, I want to show the newest file on top, but when browsing the rest of that drive, I want the files to be in alphabetical order.
I have found out how to customize folders, so I get the colums  I want, but I can't find how to set the order...
7
Support and Feedback / Re: Weird file names display
« Last post by nietrupek on February 09, 2026, 09:15:34 »
MC just tell window to draw the unicode string. MC does not process., It is using Window built in support for drawing unicode strings.

So the problem is outside of MC's control, somewhere in external library.
And today, the same files are displayed properly. And my PC wasn't even turned off since yesterday...

You can't use zip for unicode filenames, zip is an legacy and old format. normally zip till convert filename to 7/8bit for current code page used, or to UTF-8 if enabled for zip.

Thanks for the explanation. I had no idea that zip is outdated.


8
Support and Feedback / Re: Weird file names display
« Last post by Mathias (Author) on February 09, 2026, 07:41:23 »
Unicode suport all kind of strange things like emoji and what ever..  MC has no control over it. I see any security risk. It not like it can execute any code.
MC just tell window to draw the unicode string. MC does not process., It is using Window built in support for drawing unicode strings.

You can't use zip for unicode filenames, zip is an legacy and old format. normally zip till convert filename to 7/8bit for current code page used, or to UTF-8 if enabled for zip. But that is only if the conversion from Windows Unicode to UTF8 will work and there are cases where it does not work so well. 7Zip support unicode much better.

Also it depends on what font is used and if it support all the characters included..  Unicode has over 297 000 characters.. and i don't think there is a font that support all of that



9
Support and Feedback / Weird file names display
« Last post by nietrupek on February 08, 2026, 19:53:58 »
Attached I send MC's display of some "exotic" filenames (attachements, left panel). These files were created by Thunderbird, they are spam mails saved using EML format. System: Windows 10.

It is a security risk if "something" in filenames is able to manipulate MC's behaviour.

BTW, your built-in zip functionality changes filenames (2nd attachment, right panel). If it is documented and user may switch this feature on/off, then it is OK. If not, it is a bug.
For reference, the same files packed using external 7z application keep original file names intact (1st attachment, right panel).

ADDED: Sorry, I didn't see "[BUG] Unicode NOT work" topic, so this is basically a duplicate of it. But maybe attachments will be helpful. I am using one of typical Windows fonts (Consolas), so it is not the cause of the problem.
10
Script / [SCRIPT] Set As Background Wallpaper (Stretched etc.)
« Last post by total_annihilation00 on February 06, 2026, 03:38:16 »
Useful 'Set As Wallpaper (Stretched)' PowerShell Script I added as a 'Custom Context Menu' since MC doesn't give you the "Set As Background Image" option for instance when in a Flat View (doesn't show up), this custom command will always display though (change the Script FilePath tailored to your own path (remember directory subpaths must be in double slashes)) (To add to Context Menu goto Config > "Custom Context Menu") [Tested on MC 15.8 running Windows 10] (P.S: I made 5 PowerShell Scripts files, for each of the different modes (for instance: SetWallpaperMCStretched.ps1, SetWallpaperMCFill.ps1, SetWallpaperMCFit.ps1, SetWallpaperMCCenter.ps1, SetWallpaperMCTile.ps1)):

claude-opus-4-5-20251101-thinking-32k AI Generated::
## Step 1: Fixed PowerShell Script

Save this as `C:\SetWallpaper.ps1`:

```powershell
Code: [Select]
param([string]$ImagePath)

# Load WinForms so MessageBox works
# Add-Type -AssemblyName System.Windows.Forms

# Debug: Show what path was received (remove this line after testing)
# [System.Windows.Forms.MessageBox]::Show($ImagePath)

Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name WallpaperStyle -Value '2'
Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name TileWallpaper -Value '0'

$code = @"
using System;
using System.Runtime.InteropServices;
public class Wallpaper {
    [DllImport("user32.dll", CharSet = CharSet.Auto)]
    public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
}
"@

Add-Type -TypeDefinition $code -ErrorAction SilentlyContinue
[Wallpaper]::SystemParametersInfo(20, 0, $ImagePath, 3)
```
---

## Step 2: Corrected MC.Run Command

The issue is likely the variable not expanding properly. Try this (Save this as a User-Defined Command then add it to Config > Custom Context Menu to set the selected file as a Stretched Wallpaper):

```multiscript
Code: [Select]
@var $imgPath = GetSourceFocusPath();
@var $arguments = "-ExecutionPolicy Bypass -File \"C:\\SetWallpaper.ps1\" -ImagePath \"" + $imgPath + "\"";
MC.Run CMD="powershell.exe" ARG="{$arguments}";
```
---

Notes (if you want other styles later)
These registry values are the ones Windows uses:
  • Stretch: WallpaperStyle=2, TileWallpaper=0 (used above)
  • Fill: WallpaperStyle=10, TileWallpaper=0
  • Fit: WallpaperStyle=6, TileWallpaper=0
  • Center: WallpaperStyle=0, TileWallpaper=0
  • Tile: WallpaperStyle=0, TileWallpaper=1
Pages: [1] 2 3 4 5 ... 10