ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: WhoIsThis Hotkey

(1/1)

Kruskal:
I'd find it really use for to place the mouse over a window and be told the full path name of the program that this window represents.  I don't know any way to get this information.  I can think of two ways to convey the information back to the user:

1- Pop-up a window with the name.
2- Put the name in the copy buffer.

Or, maybe, the pop-up with an INI option to also place it in the copy buffer.  Or, maybe, have a way for the mouse to tell the pop-up to place its contents in the copy buffer.

Thanks -- Vincent

kimmchii:
i use Process Explorer.

it shows the full path of all the running progs.

skrommel:
 :) 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
}

Kruskal:
:) Try this script!

-skrommel (June 10, 2007, 08:42 AM)
--- End quote ---
That works great!  I changed it to be hotkey driven (Ctr-Alt-W) and it is just what I need.

And my FIRST AutoHotkey script (although you did 99% of the coding)!

Thanks -- Vincent

Navigation

[0] Message Index

Go to full version