code removed due to protest. http://www.autohotkey.com/forum/viewtopic.php?t=81795
WhoPutItOnTheClipboard()
http://www.autohotke...pic.php?t=81795
Thanks for sharing.
thanks.Nice, I'm going to play around with this a little more tomorrow, but it's kind of interesting.
Thanks for sharing.
Retrieving infos about the window that has put the data in the clipboard is not always what you expect. A lot of programs seem to have a special hidden-window that is referenced instead of the window the Copy is invoked in.
Here is a short list of title-informations returned from several programs on my german Win2k system:
Crimson Editor
----------
Processname = cedt.exe
Title = Crimson Editor - [C]
MainTile =
----------
---
Firefox
----------
Processname = firefox.exe
Title =
MainTile =
----------
---
IE 6
----------
Processname = IEXPLORE.EXE
Title =
MainTile =
----------
---
Notepad
----------
Processname = notepad.exe
Title =
MainTile = Unbenannt - Editor
----------
---
Calc
----------
Processname = calc.exe
Title = CalcMsgPumpWnd
MainTile = Rechner
----------
---
Paint
----------
Processname = MSPAINT.EXE
Title =
MainTile =
----------
---
AutoHotkey Help
----------
Processname = hh.exe
Title =
MainTile = AutoHotkey Help
----------
---
Explorer
----------
Processname = AutoHotkey.exe
Title = C:\Dokumente und Einstellungen\zed\Desktop\test4.ahk - AutoHotkey v1.0.48.05
MainTile = C:\Dokumente und Einstellungen\zed\Desktop\test4.ahk - AutoHotkey v1.0.48.05
----------
---
IrfanView
----------
Processname = i_view32.exe
Title = iss_sunrise.bmp - IrfanView (Selection: 138, 83; 159 x 140; 1.136)
MainTile =
----------
---
http://www.autohotke...pic.php?t=81795