Process ID to Window ID
Keywords: tListProc cWinIdConvert
Question:
Any way of relating the process ids returned by the Process Extender (tListProc) to Window ids (WinIdGet,
DllHwnd)?
Answer:
Maybe you want something like this????
AddExtender("wproc34I.dll")
AddExtender("wwctl34I.dll")
id=tListProc()
list=Askitemlist("List of all current processes",id,@TAB,@UNSORTED,@SINGLE)
procid=itemextract(2,list,"|")
winids = WinItemProcId(procid, 2, 0)
WinId=Askitemlist("List of all associated window ids",winids,@TAB,@UNSORTED,@SINGLE)
hWnd = cWinIdConvert(WinId)
message("Id Converted to a window handle (same as dllhwnd)",hwnd)
Exit
Article ID: W14549
Filename: Process Id to Window Id.txt