I'm probably getting old and stupid but I cannot neither figure out nor rtfm how to rewrite my old ahk command to v2.
The command supposed to maximize/restore current window a-la ubuntu, and no matter how I try to follow the syntax an error, there's one or another syntax error.
A hint would be very much appreciated!
Code: Select all
; maximize
!F10::
SetTitleMatchMode "RegEx"
IfWinActive, .*
{
WinGet, MAX, MinMax
if (MAX = 0) {
WinMaximize
} else {
WinRestore
}
}