Endre wrote:
It was a bit confusing that the comments in the beta still referred to the old hotkeys, but it's a beta after all.
I didn't really intend to release it like that, but lost interest in developing WindowPad. I chose to release it in its incomplete form rather than keeping it to myself.

Quote:
I wonder if it might make sense to include a hotkey for toggling the minimized status of the current or the previous window as a counterpart to the Maximize toggle (currently Num0/NumDot+NumAdd).
Commands can be added to the beta as simply as adding a label. Adding the following to WindowPad will allow you to assign "Minimize" and "Unminimize" to keys in WindowPad.ini, like any other WindowPad command.
Code:
Minimize:
;WinMinimize, A ; seems to leave the window active on my system...
PostMessage, 0x112, 0xF020,,, A ; WM_SYSCOMMAND, SC_MINIMIZE
return
Unminimize:
if WinExist(GetLastMinimizedWindow())
WinRestore
return
GetLastMinimizedWindow()
{
WinGet, w, List
Loop %w%
{
wi := w%A_Index%
WinGet, m, MinMax, ahk_id %wi%
if (m = -1) ; minimized
lastFound := wi
}
return "ahk_id " . (lastFound ? lastFound : 0)
}
I use GetLastMinimizeWindow() with my
mouse gestures script. I usually use XButton2 & LButton to minimize and RButton & left, right (or right, left) to restore, so never added these features to WindowPad.
Bug: I find that sometimes (usually only the first time I press CapsLock after logging in) the CapsLock hotkey doesn't register and it instead toggles caps lock. Does anyone else have this or a similar issue?