Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: WINEXENAME determine the fully-pathed EXE associated with the NT module names
#DefineFunction GetProcessExeFromWindowTitle(wnd) If WinVersion(4)==4 ; NT AddExtender("wwprc44I.dll") h=DllHwnd(wnd) ; window title goes in here bb=BinaryAlloc(4) BinaryEodSet(bb,4) dllname=StrCat(DirWindows(1),"user32.dll") DllCall(dllname,long:"GetWindowThreadProcessId",long:h,lpbinary:bb) p=BinaryPeek4(bb,0) BinaryFree(bb) modlist=tListMod(p,0) firstmod=ItemExtract(1,modlist,@TAB) exe=ItemExtract(1,firstmod,"|") Else exe=WinExename(wnd) EndIf Return (exe) #EndFunction prog=GetProcessExeFromWindowTitle("WinBatch Studio") Message("",prog) Exit
Article ID: W15726
File Created: 2013:04:01:09:22:00
Last Updated: 2013:04:01:09:22:00