512.0 Getting Started2.10.7 Windows2.10.7.1 enumWindows(handle)2.10.7.1.1 DescriptionEnumerates all windows.2.10.7.1.2 ArgumentsArgument Type Descriptionhandle Number The handle to the window whose childwindows should be enumerated. Specifynull (0) to enumerate all top level win-dows.2.10.7.1.3 ReturnsA table containing all the window handles of the enumerated windows.2.10.7.1.4 ConstantsNone.2.10.7.1.5 Example2.10.7.2 findWindow(title, class)2.10.7.2.1 DescriptionFinds a window with the specified title and class.2.10.7.2.2 ArgumentsArgument Type Descriptiontitle String The title of the sought window.class String,optionalThe window class of the sought window.2.10.7.2.3 ReturnsThe window handle if the window is found or null otherwise.2.10.7.2.4 ConstantsNone.2.10.7.2.5 Example2.10.7.3 getForegroundWindow()2.10.7.3.1 DescriptionGets the handle of the foreground window.2.10.7.3.2 ArgumentsNone.2.10.7.3.3 ReturnsThe window handle of the foreground window. In special circumstancesthis can be null so you need to check the return value before further useof it.2.10.7.3.4 ConstantsNone.2.10.7.3.5 Example2.10.7.4 getWindowClass(handle)2.10.7.4.1 DescriptionGets the class name of the specified window.2.10.7.4.2 ArgumentsArgument Type Descriptionhandle Number The handle of the window.2.10.7.4.3 ReturnsA string containing the class name of the window or an empty string ifthe class name couldn’t be retrieved.2.10.7.4.4 ConstantsNone.2.10.7.4.5 Example