【AHK】固定wps的窗口大小/解决wps2019版重新打开窗口会缩小至100*100的bug

解决办法就是每一次点击lbutton添加触发事件,同样也可以换成其他快捷键

js 复制代码
#IfWinActive ahk_exe wpp.exe
~lbutton::
justfyWin(ahk_exe wpp.exe)
#IfWinActive


#IfWinActive ahk_exe wps.exe
~lbutton::
justfyWin(ahk_exe wps.exe)
return
#IfWinActive


#IfWinActive ahk_exe et.exe
~lbutton::
justfyWin(ahk_exe et.exe)
return
#IfWinActive


justfyWin(winName){
	SysGet, ScreenHeight, 62
	
	If WinExist(winName){
		winmove,A, ,,0, 1400,ScreenHeight-10
		return
	}
}

其中 winmove,A, ,0, 1400,ScreenHeight-10 包含位置大小参考,具体可以查询AHK手册

相关推荐
phantom_1111 天前
Cursor 分析 bug 记录
bug·cursor
Direction_Wind3 天前
Flinksql bug: Heartbeat of TaskManager with id container_XXX timed out.
大数据·flink·bug
skywalk81634 天前
Ubuntu24.04桌面版安装wps
linux·ubuntu·wps
AIBigModel5 天前
智能情趣设备、爆 bug:可被远程操控。。。
网络·安全·bug
Direction_Wind5 天前
flinksql bug: Received resultset tuples, but no field str
bug
阿幸软件杂货间5 天前
小黑课堂计算机一级WPSOffice题库安装包1.44_Win中文_计算机一级考试_安装教程
wps
CIb0la5 天前
kali linux 2025.2安装WPS并设置无报错的详细步骤
linux·运维·wps
远瞻。6 天前
【bug】diff-gaussian-rasterization Windows下编译 bug 解决
windows·bug
中草药z6 天前
【测试】Bug+设计测试用例
功能测试·测试工具·测试用例·bug·压力测试·测试
我又来搬代码了6 天前
【Android】【bug】Json解析错误Expected BEGIN_OBJECT but was STRING...
android·json·bug