Python Forum
Windows: Put File automatically under Cursor for Drag & Drop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows: Put File automatically under Cursor for Drag & Drop
#1
Hello, I'm stuck on the following problem and can't seem to find a solution for it. Does anyone know if this is possible?

On Windows I have the directory path for a file.

I would like to have a Python Script which can automatically "put that file" under the Mouse Cursor so I can drop it into another application window.

So basically the effect should be the same, as manually navigating to the File Location and then dragging the file to a new location using drag and drop.
Reply
#2
If you use a gui (tkinter is built in), you can list your files in whatever widget suits your purpose.
Once done, you can set the focus (or index) on the desired target
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can a windows file be 'remapped' in Linux ? jehoshua 3 852 Dec-07-2024, 03:33 AM
Last Post: jehoshua
  How to re-register .py file extension to new moved Python dir (on Windows)? pstein 5 1,265 Nov-06-2024, 03:06 PM
Last Post: DeaD_EyE
  Executable file compiled by PyInstaller does not work on Windows 7 amusaber 1 1,700 Jul-11-2024, 02:59 PM
Last Post: DeaD_EyE
  Help with cursor in terminal river251 2 1,217 May-23-2024, 10:40 AM
Last Post: perfringo
  Cursor Variable inside Another Cursor . CX_ORacle paulo79 1 2,236 Apr-09-2022, 10:24 AM
Last Post: ibreeden
  Cursor write 3rd file empty paulo79 3 2,727 Mar-10-2022, 02:51 PM
Last Post: DeaD_EyE
  batch file for running python scipt in Windows shell MaartenRo 2 3,003 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Using a .bat file to execute simple anaconda commands in Windows 10 gacg1 0 5,760 Nov-30-2020, 03:24 PM
Last Post: gacg1
  change mouse cursor (in Windows) mgroen 0 2,090 Nov-11-2020, 11:26 AM
Last Post: mgroen
  Pyinstaller - I can't drag and drop into the CMD terminal anymore.. aquerci 4 7,558 Jan-25-2020, 12:24 PM
Last Post: aquerci

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020