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

相关推荐
IT二叔18 小时前
Git Flow04-bug修改流程
git·bug
万粉变现经纪人2 天前
如何解决 pip install shapely 报错 GEOS C 库未找到 问题
c语言·开发语言·python·pycharm·bug·pandas·pip
cyforkk2 天前
前后端联调实战:解决业务异常被误判为成功的“幽灵 Bug”
bug·状态模式
li9056632802 天前
hanzi-writer-miniprogram Path2D问题以及Bug修复
微信小程序·bug
万粉变现经纪人3 天前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
鹏大师运维4 天前
统信UOS上使用WPS PDF独立版
linux·运维·windows·pdf·wps·统信uos·wine
ChoSeitaku4 天前
Git分支|创建分支|切换分支|合并分支|删除分支|合并冲突分支|分支策略|bug分支|强制删除分支
bug
微学AI4 天前
内网穿透的应用-docker-wps-office+cpolar 打造私有化移动办公方案
docker·容器·wps
拾穗哥4 天前
wps/word行距不正常调整
word·wps
PythonFun4 天前
巧用WPS新函数:快速实现表格数据维度转换
wps