Restores an application window or the current Newlook session. Corresponds to the Restore action.
System.Restore([Application])
Newlook Smartclient only.
If the application's window is maximized or minimized, it will be restored to its default position, otherwise Restore simply ensures it is visible.
Application - (String, Optional)
String value specifying which application to activate. 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 runs windows Calc.exe in minimized mode, then restores the calc window to it's standard size: VB SCRIPT:Sub OpenCalc System.RunApp "C:\Windows\system32\calc.exe","","",nlWinMinimized 'do something System.Restore "Calculator" End Sub JSCRIPT:Function OpenCalc() { System.RunApp ("C:\\Windows\\system32\\calc.exe","","",nlWinMinimized ); System.SendKeys ("Calculator", "{Alt+3}", 1); System.Restore ("Calculator"); } |
© 2004-2021 looksoftware. All rights reserved.