Opened is Maximized/Minimized to script

Added isMaximized and opened it as well as isMinimized to script.