【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手册

相关推荐
奶茶精Gaaa18 小时前
测试能力提升--Bug分析能力
bug
骆驼爱记录19 小时前
Word样式检查器使用指南
自动化·word·excel·wps·新人首发
LJianK12 天前
idea自带的数据库修改默认值有bug
bug
骆驼爱记录4 天前
Word样式库不显示的8种修复方法
word·wps·新人首发
爱上妖精的尾巴4 天前
8-5 WPS JS宏 match、search、replace、split支持正则表达式的字符串函数
开发语言·前端·javascript·wps·jsa
这个软件需要设计一下4 天前
ninedata安装磁盘不足问题解决
运维·bug
鹏大师运维4 天前
信创桌面操作系统上的WPS外观界面配置
linux·运维·wps·麒麟·统信uos·中科方德·整合模式
热爱生活的五柒4 天前
cc-switch安装方法、介绍及遇到的bug
bug·cc-switch
Greenland_124 天前
Android 混淆与混淆后bug日志问题定位
android·bug
应用市场4 天前
踩坑记录:有符号整数位运算的那些隐蔽Bug——符号扩展、算术右移与补码
java·开发语言·bug