Sign in to follow this  
Followers 0

drag and drop to window with image

1 post in this topic

#1 ·  Posted (edited)

Hi! Happy holidays 2 everyone!!

I have a little problem with drag and drop to image.

Example - trash on yours desktop. I cant find the way to read data from $GUI_DROPACCEPTED control

Remake of autoit library examples

#include <GUIConstantsEx.au3>
Local $file, $btn, $msg
GUICreate(" My GUI input acceptfile", 320, 120, 0, 0, -1, 0x00000018); WS_EX_ACCEPTFILES
$file = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 5, 0, 300, 75)
$btn = GUICtrlCreateButton("Ok", 40, 75, 60, 20)
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()
        Case $msg = $btn
MsgBox(4096, "drag drop file", GUICtrlRead($file))
Edited by ExKiller

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0