Recent Posts

Pages: [1] 2 3 4 5 ... 10
1
This is a follow-up. The previous scripts had compatibility issues with older Win 95+ OS's-based Screensavers etc. (they wouldn't detect the Wallpaper like in the BLOCKS/ Windows 98.SCR screensaver)

Legacy Windows 98 Screensaver Compatibility Fix via PowerShell
The issue stems from two primary compatibility gaps between modern Windows 10 and legacy Win32/16 architecture:

  • Image Format Limitation: Legacy screensavers (e.g., Windows 98.SCR) lack JPEG/PNG decoding capabilities and rely solely on uncompressed BMP files for textures.
  • Registry Synchronization: Modern Windows 10 manages wallpaper transcoding internally, often failing to update legacy registry keys (HKCU:\Control Panel\Desktop\Wallpaper) with raw image paths, causing detection failures.

Solution Overview:
  • On-the-fly BMP Conversion: The script leverages .NET's System.Drawing to transcode any user-selected image (JPG, PNG, WebP) into a 24-bit BMP, ensuring compatibility.
  • Reliable Storage Path: Saves the BMP to a predictable, short path (e.g., $env:USERPROFILE\classic_wallpaper.bmp) to facilitate detection by legacy screensavers.
  • Registry & API Updates: Manually updates the Wallpaper registry key with the BMP path and invokes SystemParametersInfo API with SPI_SETDESKWALLPAPER to immediately apply, ensuring the screensaver detects the correct wallpaper image.

You need five of these scripts for each of the modes (replace the code lines of each according to the following):
+--------------------------------------------------------+
|                Style Reference Map                     |
+------------------------------+-------------------------+
| Style                        | Registry Settings      |
+------------------------------+-------------------------+
| Stretch                      | WallpaperStyle='2'      |
|                              | TileWallpaper='0'       |
+------------------------------+-------------------------+
| Fit                          | WallpaperStyle='6'      |
|                              | TileWallpaper='0'       |
+------------------------------+-------------------------+
| Fill                         | WallpaperStyle='10'     |
|                              | TileWallpaper='0'       |
+------------------------------+-------------------------+
| Center                       | WallpaperStyle='0'      |
|                              | TileWallpaper='0'       |
+------------------------------+-------------------------+
| Tile                         | WallpaperStyle='0'      |
|                              | TileWallpaper='1'       |
+------------------------------+-------------------------+
| Span                         | WallpaperStyle='22'     |
|                              | TileWallpaper='0'       |
+------------------------------+-------------------------+

Here's the full script for 'Stretched', change the two values for the rest of the scripts modes:
Code: [Select]
```SetWallpaperMCStretch.ps1
param([string]$ImagePath)

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

# Load .NET Assembly for Image Processing
Add-Type -AssemblyName System.Drawing

# Define a clean, static path for the legacy BMP file
# Legacy screensavers handle paths without spaces much better
$BmpPath = "$env:USERPROFILE\classic_wallpaper.bmp"

# Convert the source image to a 24-bit BMP to satisfy the Win98 screensaver engine
try {
    $SrcImage = [System.Drawing.Image]::FromFile($ImagePath)
   
    # If a previous wallpaper BMP exists, delete it first to release file locks
    if (Test-Path $BmpPath) {
        Remove-Item $BmpPath -Force -ErrorAction SilentlyContinue
    }
   
    # Save as BMP format
    $SrcImage.Save($BmpPath, [System.Drawing.Imaging.ImageFormat]::Bmp)
    $SrcImage.Dispose()
}
catch {
    Write-Error "Failed to process and convert image: $_"
    exit 1
}

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

# FORCE legacy wallpaper path update in the registry for the screensaver
Set-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name Wallpaper -Value $BmpPath

# 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, $BmpPath, 3)
```


Plus interface it in MC like this:
Code: [Select]
```MultiScript
@var $imgPath = GetSourceFocusPath();
@var $arguments = "-ExecutionPolicy Bypass -File \"C:\\Users\\dell\\Downloads\\thumbstick\\CUT\\SEND TO USB (COPY PDF FOLDER)\\Temp FlashDrive Store\\SendTo\\Latest Software Delete (Temp)\\SetWallpaperMCStretch.ps1\" -ImagePath \"" + $imgPath + "\"";
MC.Run CMD="cmd.exe /c powershell.exe" ARG="{$arguments}";
```

Technical Highlights:
  • Uses PowerShell + .NET for image transcoding.
  • Sets appropriate registry values (WallpaperStyle and TileWallpaper) for correct display behavior.
  • Invokes Win32 API call for immediate wallpaper refresh.
  • Ensures backward compatibility for Win95/98-style screensavers expecting BMP textures and registry cues.
2
Beta Releases / Re: v16.0 Beta
« Last post by Mathias (Author) on Yesterday at 17:30:06 »
Quote

I can't reproduce that.   The column thing might be fixed with the other column issues that was fixed.. but the miscalculation of items I can't reproduce.

Thanks for fixing the column thing ;)
I am still having the queue weirdness but I suspect that the fact I'm using a custom commmand & the NODIALOG option may be related as F6 has behaved better.
See attached CC dialog entry.
So what is happening ? items not added to queue at all ?  What is the situation. lots of large /small files.. and you add to existing when there is allready a file operation in process... so it is not added to queue ? or something else.. ?
3
Beta Releases / Re: v16.0 Beta
« Last post by Ulfhednar on Yesterday at 15:18:53 »
Quote

I can't reproduce that.   The column thing might be fixed with the other column issues that was fixed.. but the miscalculation of items I can't reproduce.

Thanks for fixing the column thing ;)
I am still having the queue weirdness but I suspect that the fact I'm using a custom commmand & the NODIALOG option may be related as F6 has behaved better.
See attached CC dialog entry.
4
Support and Feedback / Re: Lost menu bar
« Last post by Mathias (Author) on May 21, 2026, 11:05:39 »
Ctrl+M
5
Support and Feedback / Lost menu bar
« Last post by imadube on May 21, 2026, 10:30:14 »
I somehow lost my Menu Bar.
Anyone can help me get it turned back on?
6
Support and Feedback / Re: Quick filter
« Last post by total_annihilation00 on May 14, 2026, 09:31:42 »
Thanks, I'm trying claude at the moment. I will try to create an empty filter to quickly clear the filter.

Alright good luck 👍, but I had a bad experience with Claude's free-tier 'Sonnet', unless you're using 'Claude Opus 4.7 Thinking' (paid model), it's pretty useless. Whereas ChatGPT is amazingly good even with their free-tier models (just make sure you enable 'Thinking Mode')!
7
Support and Feedback / Re: Quick filter
« Last post by mgigli on May 14, 2026, 02:11:07 »
Thanks, I'm trying claude at the moment. I will try to create an empty filter to quickly clear the filter.
8
Beta Releases / Re: v16.0 Beta
« Last post by Matthias515566 on May 13, 2026, 13:58:39 »
The error when moving files that also exist in the destination folder in protected directories when MC was started in admin mode has apparently been fixed. Thank you.
9
Beta Releases / Re: v16.0 Beta
« Last post by total_annihilation00 on May 11, 2026, 17:26:19 »
Its probably a bug, But If I can't reproduce it. I can't fix it.  And unfortunately, I haven't been able to replicate this behavior. Because my development time is limited, I have to prioritize bugs with clear reproduction steps.
I'll keep this issue open in case others can provide more details or specific steps to help me trigger the issue.

I fixed it, the bug is due to me accidentally pressing Enter in "AutoLoad on Path" while entering the recursive paths in "Column Layouts" dialog. It's causing possible corruption of the dialog/ form.
No I spoke too soon ("My Advanced Tweaks" layout is still broken, but I got "Default" layout to work.) 8) O.K. I can confirm the problem lies in making a new "Column Layout". If I stick to the "Default" column layout it works, maybe a new Column Layout with "AutoLoad on Path" is causing issues...
Default Layout, when importing from other custom layouts, shows a message box with Chinese characters, so there is some corruption since custom layout allows "AutoLoad on Path" and Default layout does not allow this. I hope I made this clear...
10
Beta Releases / Re: v16.0 Beta
« Last post by Mathias (Author) on May 11, 2026, 17:06:19 »
Hmm Strange.. When I restart I get the same setup as I had when I closed the app.

No I assure you there's a bug where it resets back to Name Ascending on all tabs initially on restart. I suspect another user also has this problem. What did get fixed is when a new tab is opened it retains the correct sorting, but on app restarts it still is broken and fails to store the sorting settings. So tab-wise it's fixed, but session-wise it's still glitchy.


Its probably a bug, But If I can't reproduce it. I can't fix it.  And unfortunately, I haven't been able to replicate this behavior. Because my development time is limited, I have to prioritize bugs with clear reproduction steps.
I'll keep this issue open in case others can provide more details or specific steps to help me trigger the issue.


Pages: [1] 2 3 4 5 ... 10