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

相关推荐
Risehuxyc2 天前
fix bug
bug
拖累斯5 天前
Jenkins + Python 全自动跑通「禅道任务/BUG 导出 → 月度开发考核表」
python·jenkins·bug
寂寞的船5 天前
【Unity Bug挑战】第10期 SerializeReference 内存泄漏之谜
unity·c#·游戏引擎·bug
unity工具人6 天前
unity 照片墙插件(Pop-up Photo Wall)在触摸屏和红外框设备上的触发Bug
bug
灼行8 天前
Autosar SecOC 需求场景BUG(需求不一致性)【草稿】
bug
LAM LAB10 天前
【WPS】实现自动加载宏
wps
小豆庄11 天前
视频遮罩追踪退场后ID撞号的排查—多目标场景下的失效
opencv·算法·bug·视频·python3.11
yue20040312 天前
WPS excel 顶部工具栏/导航栏字体和图标非常小 以及解决
wps
thethefighter12 天前
快速预览Word、WPS秒开,支持空格弹窗
linux·word·wps·快速预览·空格弹窗·nhdeepview
sg_knight12 天前
Bug 定位实战:把报错丢给 Codex,它是怎么修的
chatgpt·llm·bug·openai·agent·ai编程·codex