Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3423114
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:19:01+00:00 2026-05-18T06:19:01+00:00

I want to fake a drag and drop action (dragging a file from lets

  • 0

I want to fake a drag and drop action (dragging a file from lets say Windows-Explorer to a certain program). This program has a window with four drop-targets.

The target-program has its own graphical subsystem, so its neither based on WinForms nor WPF. I tried WinSpy and all it detects is the window itself, but none of the controls.

When I drag above one of the targets it shows a Windows’ copy option though (like when you drag a file to a folder on another drive).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:19:02+00:00Added an answer on May 18, 2026 at 6:19 am

    I don’t believe there’s any documented way.

    You could send WM_DROPFILES, but this (1) requires you to put the filename into an undocumented HDROP structure in the target process memory ahead of time, and (2) is the older method for accepting files, it won’t work if the application uses the newer IDropTarget APIs.

    IDropTarget is actually designed to be more general than just dragging files from explorer: there’s a Win32 API, DoDragDrop, which allows an application to act as a drag source so the user can drop its data into other applications. Unfortunately DoDragDrop watches mouse movement directly, so you’d need to simulate mouse movement and button release in order to control where the item dropped. Even this won’t work unless the other window is on top of the z-order, since DoDragDrop finds the window under the cursor, and will interfere with any mouse activity the user is doing. So it should be used as a last resort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's this Excel file I want users to be able to download from my
Is it possible? I want to do this so I can kinda fake the
I want this: And I thought that passing na.action=na.pass to boxplot would let NA
I want to take data entered in this format: John Smith 123 Fake Street
I want to automate a program called Spotify from C#, the best way (I
I want to do an XPath query on this file (excerpt shown): <?xml version=1.0
I want to fake a simple animation on page load by sequentially revealing several
Want to send the text from my current vb application to the Active Window
I want to broadcast a UDP message in my LAN with fake source IP
I want to fake a page submit (post) on clicking a link. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.