You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
;include the library#Include%A_LineFile%\..\VD.ahk; or; #Include %A_LineFile%\..\_VD.ahk; ...{startup code}; VD.init(); move window to left and follow it^#!left::VD.goToDesktopNum(VD.MoveWindowToRelativeDesktopNum("A", -1))
; move window to right and follow it^#!right::VD.goToDesktopNum(VD.MoveWindowToRelativeDesktopNum("A", 1))
#Include%A_LineFile%\..\_VD.ahk
VD.init()
^#!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
I'll remove _VD.ahk very soon enough since it leads to confusion
I use the following code to move the current window to another virtual desktop, but it does not work.
My OS is win10, whose version is 22H2 and the build number is 19045.4780.
I appreciate your help!
The text was updated successfully, but these errors were encountered: