Hi? I need your help with the issue.
I just want to get a file name with fullpath when a file dropped on a "GUICtrlCreatePic " .
I know I can use "GUICtrlCreateInput" but I just want to use a "GUICtrlCreatePic " because I can use a picture on it and contexts menu.
So, is there any other way to use drag & drop function?
In the source I have been making , I want to show the dropped file name with fullpath.
====================================================================================================
===
#include <GUIConstants.au3>
#include <file.au3>
#include <Array.au3>
#NoTrayIcon
$Drvletter = StringLeft ( @ScriptDir, 2 )
$DrvLabel = DriveGetLabel ( $Drvletter )
GUICreate("DDarea", 76, 71, @DesktopWidth - "160", @DesktopHeight - "300", $WS_POPUP, $WS_EX_TOOLWINDOW )
$GUI = GUICtrlCreatePic (@scriptDir & "\test.jpg", -1, -1, 77, 72, $GUI_SS_DEFAULT_PIC , BitOR($WS_EX_ACCEPTFILES , $GUI_WS_EX_PARENTDRAG ))
WinSetOnTop("DDarea", "", 1)
WinSetTrans ( "DDarea", "", 100 )
GUICtrlSetState ( $GUI, $GUI_DROPACCEPTED)
GUISetState ()
While 1
$msg = GUIgetMsg ()
Select
case $msg = 0
case $msg = $GUI_EVENT_DROPPED
MsgBox (4096, "Files dropped", ?????????????????????????????????? )
Endselect
Wend
====================================================================================================
===