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

相关推荐
一只自律的鸡21 小时前
【bug日记】python找不到包
bug
灵性花火21 小时前
记录Qt的多个bug
qt·bug
ss27321 小时前
手写MyBatis第96弹:异常断点精准捕获MyBatis深层BUG
java·开发语言·bug·mybatis
鹓于2 天前
开发Bug——U盘插入断网
bug
今天又在摸鱼3 天前
bug日记
bug
爱上妖精的尾巴4 天前
5-20 WPS JS宏 every与some数组的[与或]迭代(数组的逻辑判断)
开发语言·前端·javascript·wps·js宏·jsa
大Mod_abfun4 天前
24H2动态壁纸无法正常嵌入(针对vb.net的紧急加更)
bug·桌面壁纸·24h2
揭老师高效办公5 天前
Word和WPS文字如何从特定的页开始编号(页码)?
word·wps
十步杀一人_千里不留行7 天前
和 AI 一起修 Bug 心得体会
人工智能·bug·ai编程
花王江不语7 天前
改bug的一些体会
bug