WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Process ID

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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")

Addextender("wwprc44i.dll")
AddExtender("wwctl44I.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
File Created: 2013:04:01:09:11:28
Last Updated: 2013:04:01:09:11:28