26
Post New Requests Here / Need ADH Advice
« on: May 06, 2010, 08:09 PM »
You, Skrommel, were kind enough to write a AHK program for me to provide a hotkey to display a little window showing what program owns the window under the cursor. When pushed a second time, the little window goes away. I use it all the time. (Program at end).
I tried to modify it to be a simple program, rather than a hotkey by removing this line:
!^w::
It sort of works, but the feature of the second call clearing the little window is gone. I don't know the AHK script language at all. Any idea what I did wrong.
Thanks -- Vincent
PS I wonder why you haven't made this one of your publicly available (or did I miss it). I find it invaluable.
Edit by Skwire: Added code tags.
I tried to modify it to be a simple program, rather than a hotkey by removing this line:
!^w::
It sort of works, but the feature of the second call clearing the little window is gone. I don't know the AHK script language at all. Any idea what I did wrong.
Thanks -- Vincent
PS I wonder why you haven't made this one of your publicly available (or did I miss it). I find it invaluable.
Code: AutoIt [Select]
- ;AutoHotkeys.ahk
- ;Vincent Kruskal's Hotkeys
- ;Skrommel @ 2007
- ;Kruskal @ 2007
- #SingleInstance,Force
- #NoEnv
- !^w::
- If ToolTipFlag=
- {
- WinGet,pid,Pid,ahk_id %winid%
- path:=GetModuleFileNameEx(pid)
- ToolTipFlag = 1
- }
- {
- ToolTipFlag =
- }
- #q::
- GetModuleFileNameEx(p_pid) ;by shimanov at www.autohotkey
- {
- {
- WinGet,name,ProcessName,ahk_id %p_pid%
- Return,name
- }
- name_size=255
- VarSetCapacity(name,name_size)
- result:=DllCall("psapi.dll\GetModuleFileNameExA","uint",h_process,"uint",0,"str",name,"uint",name_size)
- Return,name
- }
Edit by Skwire: Added code tags.