FuPeiJiang / VD.ahk

Windows Virtual Desktop, AutoHotkey, Windows 11 support, Windows Server 2022, switch desktop, move window(wintitle) to current desktop; createDesktop, PinWindow, getCount, getDesktopNumOfWindow -> mute all windows in Virtual Desktop
MIT License
319 stars 45 forks source link

getDesktopNumOfWindow when multiple windows have same title #42

Closed nathanvercaemert closed 1 year ago

nathanvercaemert commented 1 year ago

getDesktopNumOfWindow only gets the VD of one of the windows if multiple windows have the same title. Would be nice if there was a function to getDesktopNumOfWindow by id instead of just title. I'm currently using _desktopNum_from_Hwnd, but it doesn't feel right using one of your internal methods.

If it's an easier change, returning the current desktop (if there's a window with the title on the current desktop) would solve my problem too.

Thanks for a great package.

nathanvercaemert commented 1 year ago

Realized that I should be fine just using _desktopNum_from_Hwnd.