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

[Feature] getCurrentDesktopName #18

Open LegitCamper opened 1 year ago

LegitCamper commented 1 year ago

I think a more usable function could print the desktop name (since you can rename them) instead of just the number

SplashTextOn,,, % VD.getCurrentDesktopNum() Sleep 700 SplashTextOff

Should print Programming instead of 4

Just a thought. Love the script

FuPeiJiang commented 1 year ago

check out https://github.com/FuPeiJiang/VD.ahk/blob/class_VD/other%20examples/Task%20Switcher3.ahk or you could use VD.getNameFromDesktopNum(): I should have documented it when I added this function but was lazy / preoccupied by recreating a gui VD.getNameFromDesktopNum(VD.getCurrentDesktopNum())


you could try to documentation the function somewhere(README.md or _VD.ahk) so it's obvious (then Pull Request)