Works very much like FindWindowLike. All parameters have the same meaning apart from the last one, $timeout, which is used to decide how long shall the function wait for the window to appear. Second difference is that instead of the list of window handles, WaitWindowLike returns only the first handle from the list of all windows that match the search criteria.
Handle of a window, which children we are looking for. If undefined, handle of the desktop is assumed
regular expression used to match windows' caption. If not undef, only windows, which have caption matching with $titleregex will be returned. If undef, windows' caption is not considered during search
Same as $titleregex but applies to window's class name
Control id of a child/children to be returned. If undef, $childid is not taken into consideration
Maximum level in the window hierarchy tree for which child windows will be searched. Level 2 means that only direct children of $parent will be searched (which IMHO is misleading and should be changed)
Maximum time the function should wait for the window to appear. If not given, default of 10 seconds is assumed
The function is useful when attaching to application which has just started so it takes some time for windows to appear on the screen