使用AutoHotkey保持窗口最大化? [英] Keep window maximized with AutoHotkey?

查看:608
本文介绍了使用AutoHotkey保持窗口最大化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AutoHotkey脚本,可以启动一个最大化的应用程序,如下所示:

I have an AutoHotkey script that launches an application maximized like this:

`Run, myprogram.exe,, Max`

然后摆脱最小化和还原按钮.我仍然可以单击任务栏并向下拖动以恢复窗口.有什么好方法可以让我在AHK的窗口最大化?仅仅锁定窗口的位置怎么样?

It then gets rid of the minimize and restore buttons. I can still click on the task bar and drag downwards to restore the window. Is there any good way to keep my window maximized in AHK? How about just locking the window's position?

推荐答案

F11键是否会使应用程序最大化?在F11模式下,大多数应用程序会完全丢失其标题栏.
如果是这样,请运行该应用程序,然后发送F11键(您可能需要稍等片刻才能使该应用程序处于活动状态或其他状态).
失败了,是的,您可能正在运行一个无限循环,监视着窗口的位置/大小(WinGetPos),如果它不是0,0和屏幕大小(A_ScreenWidth,A_ScreenHeight),然后将其移动到该位置和大小(WinMove).

Does the F11 key maximize the app? When in F11 mode most apps completely lose their title bar.
If so, run the app then send an F11 key (You may need to wait a bit for the app to be active or something).
Failing that, yes you could have an infinite loop running that monitored the window position / size (WinGetPos) and if it was not at 0,0 and the size of the screen (A_ScreenWidth, A_ScreenHeight), then move it to that position and size (WinMove).

这篇关于使用AutoHotkey保持窗口最大化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆