In this demo example GUI window can be maximized/restored programatically by: - system menu - button - hotkey F11 #NoTrayIcon #include <GUIConstantsEx.au3> #include <SendMessage.au3> #include <WindowsConstants.au3> $gui = GUICreate("Maximize/restore demo", 300, 200, -1, -1, BitOr($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX)) $max_id = GUICtrlCreateDummy() $b1 = GUICtrlCreateButton("maximize/restore", 10, 10, 120, 20 ) GUICtrlCreateLabel("F11: maximize/resto