01-24-2013, 08:43 PM
can i use captureend to get info about the target?
my steps so far with your example code.
can identify source window info from hwnd.
Function acc_drag_detect
Trigger $a 8 0 0 "CLIPBRDWNDCLASS"
my steps so far with your example code.
can identify source window info from hwnd.
Function acc_drag_detect
Trigger $a 8 0 0 "CLIPBRDWNDCLASS"

function hwnd idObject idChild
str exe.getwinexe(hwnd)
;if exe = "qm"; end
str osdtext.format("Drag and drop detected from exe: %s" exe)
OnScreenDisplay osdtext -1 0 0 "" 0 0 8
rep
,1
,int tid=GetWindowThreadProcessId(hwnd 0); if(!tid) break
,GUITHREADINFO g.cbSize=sizeof(g)
,if(!GetGUIThreadInfo(tid &g)) break
,if(g.hwndCapture!hwnd) break