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

相关推荐
zzc9211 天前
Adobe Illustrator设置的颜色和显示的颜色不对应问题
adobe·bug·illustrator·错误·配色·透明度·底色
醇氧2 天前
【wps】 excel 删除重复项
excel·wps
开-悟3 天前
嵌入式编程-使用AI查找BUG的启发
c语言·人工智能·嵌入式硬件·bug
一入JAVA毁终身3 天前
Data的时区格式BUG
bug
不坑老师4 天前
利用不坑盒子的Copilot,快速排值班表
microsoft·word·powerpoint·excel·copilot·wps
一入JAVA毁终身5 天前
处理Lombok的一个小BUG
java·开发语言·bug
SeaTunnel5 天前
SeaTunnel 社区月报(5-6 月):全新功能上线、Bug 大扫除、Merge 之星是谁?
大数据·开源·bug·数据集成·seatunnel
紫璨月5 天前
nginx反向代理的bug
运维·nginx·bug
从后端到QT5 天前
SRS流媒体服务器之本地测试rtc推流bug
bug·实时音视频
LENG_Lingliang15 天前
word出现由WPS切换后公式异常无法删除的情况处理
word·wps·mathtype