jpginc / windows10DesktopManager

An autohotkey desktop manager
Apache License 2.0
165 stars 22 forks source link

Feature: Add desktop-specific wallpapers #17

Closed ghost closed 7 years ago

ghost commented 8 years ago

I was studying this code to find the command for getting the current desktop's ID and couldn't figure it out (d'oh!). I ended up lifting a method from another code and wrote a background-changing standalone at https://github.com/noido/ahk-change_windows_virtualDestop_background

jpginc commented 8 years ago

To get the current desktop id you can use the VirtualDesktopManagerClass' getWindowDesktopId function. You pass it a HWND of a window on that desktop. I found the registry approach not to work if there are multiple sessions. I see that @noido has found a way to find the current session in his script (getSessionId function).

jpginc commented 7 years ago

I don't think I'll add the feature of desktop specific wallpapers but if enough people really want it then they can re-open the issue