Obtains the handle of a child window or control based on the window or control sequence number.
cWndBySeq( hWnd, seq-number)
(i) hWnd Handle of parent window.
(i) seq-number Sequence number of control (starting at 1).
(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.
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