如何最大化跨多个监视器的窗口? [英] How can I maximize a window across multiple monitors?
问题描述
使用AutoHotkey,我如何绑定一个热键以在多个监视器之间伸展/最大化/跨越一个窗口,使其覆盖两个显示器?
Using AutoHotkey, How can I bind a hotkey to stretch/maximize/span a window across multiple monitors so that it covers both displays?
现在,我必须通过使用鼠标手动拉伸窗口来执行此操作.我知道有专门的工具可以执行此操作,但是我已经在运行AutoHotkey脚本,并且宁愿限制我继续运行的工具数量.
Right now, I have to do this by manually stretching the windows with the mouse. I know there are dedicated tools that do this, but I'm already running an AutoHotkey script and would rather limit the number of tools I keep running.
推荐答案
这是我的操作方式,映射了Shift + Windows + Up
组合以最大化所有显示的窗口.这补充了Windows 7的Windows + Up
热键,该键可最大化所选窗口.
Here's how I did it, mapping the Shift + Windows + Up
combination to maximize a window across all displays. This compliments Windows 7's Windows + Up
hotkey, which maximizes the selected window.
+#Up::
WinGetActiveTitle, Title
WinRestore, %Title%
SysGet, X1, 76
SysGet, Y1, 77
SysGet, Width, 78
SysGet, Height, 79
WinMove, %Title%,, X1, Y1, Width, Height
return
这篇关于如何最大化跨多个监视器的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!