FindWindow

Returns a window title matching a specified class name.

Syntax:

FindWindow(class name)

Parameters:

(s) class name: window class name the full unique window class name.

Returns:

(s)   a window title.

 

FindWindow returns the window title of the first window whose class name matches the specified "class-name". It can be used to manipulate windows when the title is either unknown or there are several windows with the same title. A blank string ("") is returned if no matching window is found.

Note: "Class-name" is not case sensitive but must be the full class name (i.e., not a partial name).

 

Example:


DirChange(DirWindows(0))
Run("explorer.exe",StrCat("/n,/e,",DirGet( )))
While FindWindow("ExploreWClass")=="" ;wait for it to come up
   TimeDelay(1)
EndWhile
See Also:

IntControl 44