Maximizes the application window. Corresponds to the Maximize action.
object.Maximize([Application])
Newlook Smartclient only.
Typically this method is used to maximize the Smartclient window, in which case the application argument is omitted.
Application - (String, Optional)
String value specifying which application to maximize. This can be the executable name for the application or the screen title for the application. In determining which application to activate the specified application is compared to the executable name of each running application. If no match exists, the specified application is compared with the title of each running application. If no exact match still exists, any application whose title string begins with Application is activated. If an application still cannot be found, any application whose title string ends with Application is activated. If more than one instance of the application named by Application exists, one instance is arbitrarily activated. If no Application is specified then the current newlook window is used.
No return value.
The following example maximizes the Smartclient window: VB SCRIPT:Sub MaximizeScreen
End Sub JSCRIPT:Function MaximizeScreen() { System.Maximize (""); }
The following example runs windows Calc.exe, sends Alt+3 to the application to toggle the calculator into Programmer mode then maximizes the calc window: VB SCRIPT:Sub OpenCalc System.RunApp "C:\Windows\system32\calc.exe" System.SendKeys "Calculator", "{Alt+3}", 1 System.Maximize "Calculator" End Sub JSCRIPT:Function OpenCalc() { System.RunApp ("C:\\Windows\\system32\\calc.exe"); System.SendKeys ("Calculator", "{Alt+3}", 1); System.Maximize ("Calculator"); } |
© 2004-2021 looksoftware. All rights reserved.