Obtains the handle of a child window or control based on the window or control ID number.
cWndByID( hWnd, ID-number)
(i) hWnd Handle of parent window.
(i) ID-number ID number of control.
(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: cWndByID 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") Run("rundll32.exe", "shell32.dll,Control_RunDLL netcpl.cpl") netwnd=DllHwnd("Network") cfghwnd= cWndbyname(netwnd,"Configuration") lbWnd=cWndbyid(cfghwnd,404) response=cGetLbText(lbwnd) response=StrReplace(response,@TAB,@CRLF) Message("Response",response) Exit