If you wish to emulate a drag and drop action without actually performing a MouseClickDrag
you can use the following code:
; Drop test.txt into an *existing* notepad window
; Modify the class to match Tabbles window class
PostMessage, 0x233, HDrop("C:\test.txt"), 0,, ahk_class Notepad
HDrop(fnames,x=0,y=0) {
fns:=RegExReplace(fnames,"\n$")
fns:=RegExReplace(fns,"^\n")
hDrop:=DllCall("GlobalAlloc","UInt",0x42,"UPtr",20+StrLen(fns)+2)
p:=DllCall("GlobalLock","UPtr",hDrop)
NumPut(20, p+0) ;offset
NumPut(x, p+4) ;pt.x
NumPut(y, p+8) ;pt.y
NumPut(0, p+12) ;fNC
NumPut(0, p+16) ;fWide
p2:=p+20
Loop,Parse,fns,`n,`r
{
DllCall("RtlMoveMemory","UPtr",p2,"AStr",A_LoopField,"UPtr",StrLen(A_LoopField))
p2+=StrLen(A_LoopField)+1
}
DllCall("GlobalUnlock","UPtr",hDrop)
Return hDrop
}
Tested in AHK_L. Let me know if this helped!