Closed pmb6tz closed 5 years ago
I'd say 1 makes the most sense - 2 may be outside of the scope of this project (I included his entire comment but mainly meant to focus on 1). There could be other ways for identifying what desktop number the user is on.
Implemented solutions to both:
Surfacing a comment from issue #11 which I think should be considered as a feature.
How do I tell Windows (or the active program) to pin its window or all its app's windows to all desktops?
In another virtual desktop manager, I found an AutoHotKey line that looks something like
PostMessage, % WM_SYSCOMMAND , % desktopnumber, % windowid, , % "ahk_id " windowid
(exact line is line 82 of https://github.com/jpginc/windows10DesktopManager/blob/master/dllWindowMover.ahk )To the best of my understanding, what this is doing is telling that window that it is now on the other desktop.
I have no idea how to derive this command, and I am also wondering how also to derive a command that would tell the window (or the windows shell, if that is the case) to pin the app (or just the current window) to all Virtual Desktops.
The main reason I am even writing these codes is because I want these features myself and they are not implemented yet >_<
Thank you all for sharing and I will look into this.
Originally posted by @ghost in https://github.com/pmb6tz/windows-desktop-switcher/issues/11#issuecomment-300140738