VD.ahk
VD.ahk copied to clipboard
Not work for win10 22h2 19045.4780
I use the following code to move the current window to another virtual desktop, but it does not work.
#Include %A_LineFile%\..\_VD.ahk
^#!Left::
n := VD.getCurrentDesktopNum()
if n = 1
{
Return
}
n -= 1
VD.MoveWindowToDesktopNum("A",n), VD.goToDesktopNum(n)
Return
^#!Right::
n := VD.getCurrentDesktopNum()
if n = % VD.getCount()
{
Return
}
n += 1
VD.MoveWindowToDesktopNum("A",n), VD.goToDesktopNum(n)
Return
My OS is win10, whose version is 22H2 and the build number is 19045.4780. I appreciate your help!