www.icetips.com  Icetips Utilities Documentation 11/5/2015    

ActivateWindow

Previous  Top  Next  


Prototype: (String pWindowTitle, Long pWindowHandle=0)

 

pWindowTitleFull or partial title of the window to activate. 
pWindowHandleOptionally pass in the handle of the window to activate.  (New in build 1.2.2427, November 24, 2014)

 

This method is used to activate a window.  It is used by the Limit Program Instance template to activate the window for the program being limited.  It can be used with any parent or top window and will bring it into focus and restore it if it is minimized.

 

Example:

Glo:ITWindowsClass   ITWindowsClass                        ! Icetips: Limit Program Instance

CODE

If Glo:ITWindowsClass.IsProgramRunning('This is a test') ! Icetips: Limit Program Instance

   Message('The program is already running.','Program is already running') ! Icetips: Limit Program Instance

   Glo:ITWindowsClass.ActivateWindow('Registry Class test program') ! Icetips: Limit Program Instance

   HALT()                                                 ! Icetips: Limit Program Instance

End                                                      ! Icetips: Limit Program Instance

 

See also:

IsProgramRunning

Limit Program Instance

 



Direct link to this page: http://www.icetips.com/manuals/utilities/activatewindow_window.htm