WPS免费好用,但有一个bug真的不堪其扰,就是最小化弹出来的时候,偶尔会变得很小 300*250 左右,每一次都要重新调整,现在通过AHK有一个解决办法。
思路就是每一次点击都判断一次窗口大小,如果小于300则自动放大。
#IfWinActive ahk_exe wps.exe
~lbutton::
justfyWin(ahk_exe wps.exe,1400)
return
#IfWinActive
#IfWinActive ahk_exe wpp.exe
~lbutton::
justfyWin(ahk_exe wpp.exe,1400)
return
#IfWinActive
#IfWinActive ahk_exe et.exe
~lbutton::
justfyWin(ahk_exe et.exe,1700)
return
#IfWinActive
winHeight := 0
justfyWin(winName, WinWidth){
SysGet, ScreenHeight, 62
WinActivate, winName
WinGetPos,winx,winy,winw,winh,A ;tooltip 窗口y坐标%winy% 窗口原长度%winh%
If (winw < 330){
winmove,A, ,,0, %WinWidth%,ScreenHeight-10
return
}
}