Win11 虚拟桌面之间移动窗口

  • Win11 虚拟桌面之间移动窗口

  • 资料来源:

    https://github.com/microsoft/PowerToys/issues/16

  • 更新

    1
    2024.08.24 初始

win11 虚拟桌面自己常用的快捷键:

  • win ctrl + 左右: 切换虚拟桌面
  • shift win + 左右: 窗口在不同显示器之间切换

但是烦恼的是系统没有提供窗口在 虚拟桌面之间移动的快捷键.

关联 issue: Moving a program with you to another virtual desktop

win11 23h2 可用:

SylphyHornPlusWin11

  • 需要使用 SylphyHornPlus-Ver4.0.0-test-support22621.3085OrLater.zip 版本
  • 快捷键: win ctrl alt + 左右.

原帖提供的 AHK Script

  • 快捷键: ctrl + shit +win + left/right
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
^+#Left::
WinGetTitle, Title, A
WinSet, ExStyle, ^0x80, %Title%
Send {LWin down}{Ctrl down}{Left}{Ctrl up}{LWin up}
sleep, 50
WinSet, ExStyle, ^0x80, %Title%
WinActivate, %Title%
Return

^+#Right::
WinGetTitle, Title, A
WinSet, ExStyle, ^0x80, %Title%
Send {LWin down}{Ctrl down}{Right}{Ctrl up}{LWin up}
sleep, 50
WinSet, ExStyle, ^0x80, %Title%
WinActivate, %Title%
Return

救了大命了.