Minimizes an application window. Corresponds to the Minimize action.
object.Minimize([Application])
Newlook Smartclient only.
Typically this method is used to maximize the Smartclient window, in which case the application argument is omitted.
This method cannot be tested in the runtime client. You will need to call this method in Smartclient to see it working.
Application - (String, Optional)
String value specifying which application to minimize. 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 this argument is omitted then the current newlook window is used.
No return value.
The following example minimizes the Smartclient window: VB SCRIPT:Sub MinimizeScreen
End Sub JSCRIPT:Function MinimizeScreen() { System.Minimize (""); }
The following example runs windows Calc.exe, sends Alt+3 to the application to toggle the calculator into Programmer mode then minimizes the calc window: VB SCRIPT:Sub OpenCalc System.RunApp "C:\Windows\system32\calc.exe" System.SendKeys "Calculator", "{Alt+3}", 1 System.Minimize "Calculator" End Sub JSCRIPT:Function OpenCalc() { System.RunApp ("C:\\Windows\\system32\\calc.exe"); System.SendKeys ("Calculator", "{Alt+3}", 1); System.Minimize ("Calculator"); } |
© 2004-2021 looksoftware. All rights reserved.