cWndBySeq

Obtains the handle of a child window or control based on the window or control sequence number. 

Syntax:

cWndBySeq( hWnd, seq-number)

Parameters:

(i) hWnd Handle of parent window.

(i) seq-number Sequence number of control (starting at 1).

Returns:

(i) Handle to the child window or control.

 

This function obtains the handle of a child window or control for use in subsequent operations. The first parameter, HWND, is a handle obtained via one of these functions:

DllHwnd (See Main WIL documentation)

cWndByClass

cWndByID

cWndByName

cWndBySeq

cWndInfo (some parameter values)

Note: cWndBySeq accepts 0 or "", as the first parameter, which is the handle of parent window. It will search all top-level windows for the second parameter instead of searching the child windows of parameter 1.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")

;Note: This example designed for Window 95 Run("rundll32.exe", "shell32.dll,Control_RunDLL netcpl.cpl") netwnd=DllHwnd("Network") cfghwnd= cWndbyname(netwnd,"Configuration") lbWnd=cWndbyseq(cfghwnd,2) response=cGetLbText(lbwnd) response=StrReplace(response,@TAB,@CRLF) Message("Response",response) Exit

See Also:

cWndByName, cWndById, cWndInfo