Jump to content
Sign in to follow this  
creeping

Simulating file drag n drop to window or control

Recommended Posts

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



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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...