Try this script!
Save it to the file WinProcPath.ahk, and download and install
AutoHotkey.
;WinProcPath.ahk
; Show the filename of the windows below the mouse
;Skrommel @ 2007
#SingleInstance,Force
#NoEnv
Loop
{
MouseGetPos,x,y,winid,ctrlid
WinGet,pid,Pid,ahk_id %winid%
path:=GetModuleFileNameEx(pid)
ToolTip,%path%
Sleep,100
}
GetModuleFileNameEx(p_pid) ;by shimanov at www.autohotkey
{
If A_OSVersion in WIN_95,WIN_98,WIN_ME
{
WinGet,name,ProcessName,ahk_id %p_pid%
Return,name
}
h_process:=DllCall("OpenProcess","uint",0x10|0x400,"int",false,"uint",p_pid) ; PROCESS_VM_READ=0x0010 PROCESS_QUERY_INFORMATION=0x0400
If (ErrorLevel or h_process=0)
Return
name_size=255
VarSetCapacity(name,name_size)
result:=DllCall("psapi.dll\GetModuleFileNameExA","uint",h_process,"uint",0,"str",name,"uint",name_size)
DllCall("CloseHandle",h_process)
Return,name
}