Ciantic / VirtualDesktopAccessor

DLL for accessing Windows 11/10 Virtual Desktop features from e.g. AutoHotkey
MIT License
782 stars 93 forks source link

Exposing `UpdateWallpaperPathForAllDesktops` from IVirtualDesktopManagerInternal #85

Open theSoberSobber opened 10 months ago

theSoberSobber commented 10 months ago

Exactly what the title says, can you do that please? Thanks!

Ciantic commented 10 months ago

I'm using this in AutoHotkey v2 to change desktop wallpaper for all desktops:

ChangeWallpaper(newPaper) {
    DllCall("SystemParametersInfo", "UInt", 0x14, "UInt", 0, "Str", newPaper, "UInt", 0)
}

But having API to set wallpaper for specific Desktop could be useful, as there is no other API for it.