Sign in to follow this  
Followers 0
creeping

Simulating file drag n drop to window or control

6 posts in this topic

Just wondering, say I have

$file = "d:\file.mp3"

and I want to simulate a drag and drop to a window or control of which I have the handle of. How can I do this?

Thanks

Share this post


Link to post
Share on other sites



You could use MouseClickDrag



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

You could use MouseClickDrag

Sorry, I should of been more specific, I want this process to be totally invisible to the user. So the receving window or control will think it has received a file via drag and drop.

But i just want to use the path of the file I have

Share this post


Link to post
Share on other sites

send WM_DROPFILE or something like that using control* functions.

I search the forum for the use of "WM_DROPFILE" but could not find any references, would it be possible for you too give a simple example?

Thanks

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

no i cant since i forgot the exact name :D

[edit]

the command that is recieved by a gui is WM_DROPFILES.

you are gonna have to look on google for an example in like C++/VB

since i never did anything like this :D

[/edit]

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

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