使用 AutoHotkey,如何绑定(bind)热键以在多个显示器上拉伸(stretch)/最大化/跨越窗口,以便覆盖两个显示器?
现在,我必须通过用鼠标手动拉伸(stretch)窗口来完成此操作。我知道有专用工具可以执行此操作,但我已经在运行 AutoHotkey 脚本,并且宁愿限制我继续运行的工具数量。
最佳答案
我是这样做的,映射 Shift + Windows + Up
组合以在所有显示器上最大化窗口。这与 Windows 7 的 Windows + Up
热键相得益彰,该热键可最大化所选窗口。
AHK v1
+#Up::
WinGetActiveTitle, Title
WinRestore, %Title%
SysGet, X1, 76
SysGet, Y1, 77
SysGet, Width, 78
SysGet, Height, 79
WinMove, %Title%,, X1, Y1, Width, Height
return
AHK v2
+#Up::
{
Title := WinGetTitle("A")
WinRestore(Title)
X1 := SysGet(76)
Y1 := SysGet(77)
Width := SysGet(78)
Height := SysGet(79)
WinMove(X1, Y1, Width, Height, Title)
}
关于autohotkey - 如何在多个显示器上最大化窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9828808/