cFindbyName

Gets the window handle of the first window whose window name matches the specified 'partial window name'.

Syntax:

cFindbyName(partial-name)

Parameters:

(s) partial-name Partial window name.

Returns:

(i) window-handle Windows handle.

 

cFindByName returns the windows handle of the first window whose name matches the specified "partial-name". All top-level and child windows are searched. 0 is returned, if no window includes the partial window name in its title.

See "Partial Window Names" for a detailed explanation of the rules governing, partial window names.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")
; Find a button handle
sAppWndName = "About YA"
hWnd = cFindByName(sAppWndName)
hWnd = cWndbyname(hWnd, "Evaluate")
If !cClickButton( hWnd )
   Exit
EndIf

See Also:

DllHwnd, cWndByName