ich beiss mich grad an einer Sache fest und nach allem möglichen probieren finde ich den Grund/die Lösung nicht.
Ich habe eine super simple Gui - und möchte aus meinem Mailprogramm ein EML-File herausziehen auf mein AHK Script.
Das geht wunderbar aus dem Explorer und Total Commander - aber nicht aus dem Mailprogramm
Die Variante mit GuiDropFiles: geht nicht.
und diese Variante geht auch nicht
Code: Select all
Gui, +E0x10
Gui, Add, Edit, x12 y50 w140 h30 ,
Gui, Add, Button, x12 y10 w140 h30 , Button
OnMessage(0x233, "OnGuiDropFiles")
Gui, Show, w479 h379, Drop Test
Gui +E0x10
return
GuiClose:
ExitApp
OnGuiDropFiles(wParam) {
global
;WS_EX_ACCEPTFILES := 0x10
VarSetCapacity($DropedFile, 256, 0)
IF DllCall("Shell32\DragQueryFileA", "UInt", wParam, "UInt", 0, "Str", $DropedFile, "UInt", 256)
{
VarSetCapacity($DropedFile, -1)
msgbox % $DropedFile
}
DllCall("Shell32\DragFinish", "Uint", wParam)
Return 0
}
Vielen Dank vorab!