Ada*_*ski 43 keyboard-shortcuts windows-11
今年是2021年,在Windows 11中,如何仅使用快捷键将当前焦点窗口移动到下一个Windows桌面?
\n我知道我可以使用这些组合切换桌面:
\nWin+ Ctrl+ \xe2\x86\x92: 切换到下一个桌面
\nWin+ Ctrl+ \xe2\x86\x90: 切换到上一个桌面
\n添加以下快捷键对我来说似乎最舒服 - 并且在 Ubuntu 中使用:
\nWin+ Ctrl+ Shift+ \xe2\x86\x92: 将当前窗口移动到下一个桌面
\nWin+ Ctrl+ Shift+ \xe2\x86\x90: 将当前窗口移动到上一个桌面
\n与上面类似的快捷键是可以接受的......但如果我可以将它们重新映射到我喜欢的组合,那就更好了。
\n有这样的开箱即用的东西吗?或者我需要安装一些第三方工具吗?
\nSej*_*mou 28
由于我之前没有使用过 AutoHotkey,因此我需要找出一些额外的步骤(与现有答案中解释的步骤相比)来找到可行的解决方案:
\n.ahk
中的内容粘贴到其中。shell:startup
后弹出的窗口中键入内容来打开该文件夹。WinR小智 23
Win+ Ctrl+ Shift+ \xe2\x86\x92: 将当前窗口移动到下一个桌面
\nWin+ Ctrl+ Shift+ \xe2\x86\x90: 将当前窗口移动到上一个桌面
\n这个ahk
脚本对我有用:
^#+Left::\nn := VD.getCurrentDesktopNum()\nif n = 1\n{\n Return\n}\nn -= 1\nVD.MoveWindowToDesktopNum("A",n), VD.goToDesktopNum(n)\nReturn\n\n^#+Right::\nn := VD.getCurrentDesktopNum()\nif n = % VD.getCount()\n{\n Return\n}\nn += 1\nVD.MoveWindowToDesktopNum("A",n), VD.goToDesktopNum(n)\nReturn\n
Run Code Online (Sandbox Code Playgroud)\n您可以在https://github.com/FuPeiJiang/VD.ahk和https://www.autohotkey.com/找到更多信息
\nLor*_*lli 22
我把完整的 AutoHotKey 脚本取自 @void 的答案,以帮助不专业/懒惰的人:)
;#SETUP START
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
ListLines Off
SetBatchLines -1
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#KeyHistory 0
#WinActivateForce
Process, Priority,, H
SetWinDelay -1
SetControlDelay -1
;include the library
#Include VD.ahk
; VD.init() ;COMMENT OUT `static dummyStatic1 := VD.init()` if you don't want to init at start of script
;you should WinHide invisible programs that have a window.
WinHide, % "Malwarebytes Tray Application"
;#SETUP END
VD.createUntil(3) ;create until we have at least 3 VD
return
^#+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
Run Code Online (Sandbox Code Playgroud)
小智 6
不确定此线程中讨论的是哪个版本,但截至该日期(2022/07/22),在 Win-11 虚拟桌面之间移动窗口很容易。
如果您在一个虚拟桌面中工作并且您想要的应用程序已在另一个虚拟桌面上打开,则可以使用一项附加的方便且相关的功能:
归档时间: |
|
查看次数: |
52235 次 |
最近记录: |