On *:Appactive: {
if ($appstate == minimized) { echo -s The status is: $v2 }
elseif ($appstate == maximized) { echo -s The status is: $v2 }
else { echo -s The status is: $appstate }
}
That will only work for minimized/tray to maximized and vice versa, it won't work for normal to maxized. It might be good enough for what he needs though.