1
Support and Feedback / Re: Weird file names display
« Last post by Jungle on Yesterday at 21:09:33 »Thank you for checking. Are you using File Manager look and feel or traditional one?I use Commander Style Look'n'Feel
MultiCommander v15.8 is released!
Thank you for checking. Are you using File Manager look and feel or traditional one?I use Commander Style Look'n'Feel
nietrupek,
I've created some files. No problems.
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
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.
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
#>
@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";

