


Added X, Y position parameters - actually needed for some programs (Notepad++ for example).Changed Memory allocation type to 'Fixed' (thanks trancexx).*edit: for some friggin reason I can't post the code in the post - I get a 'You must enter a post' error message - wtf. $hNPPlus = WinGetHandle ( "" ) $aNPPPos = WinGetPos ( $hNPPlus ) ~ WinActivate($hNotePad) $sProgramFiles = If Then $sProgramFiles &= ' (x86)' $iRet = _FileDragDrop ( $hNPPlus & '|' & $sProgramFiles & "\AutoIt3\Include\3", $aNPPPos / 2, $aNPPPos / 2 ) ConsoleWrite ( "Return: " & $iRet & " & ", & )īe sure to credit the original authors, or leave the headers intact, if you use the code _FileDragDrop ( WinGetHandle ( "" ) & '|' & ) The result is down below.Īlso, see ProgAndy's COM implementation of Drag&Drop: 'Īnother good reference, besides those in the thread above, is this article at CodeProject: ' How to Implement Drag and Drop Between Your Program and Explorer' I cleaned up the code, added error checking, Unicode & 圆4 support, and fixed the Global memory management issues. Specifically, (his 'DoDragDrop' function). Thankfully today I came across the thread ' and found working, but flawed, code for doing exactly this. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment.Send "Drag & Drop File(s)" MessageI was looking for this functionality before, and couldn't figure out the correct method for using the WM_DROPFILES message. By optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. Running in the MS Windows environment, its use is governed by GPL Licence.īased on a powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.

Notepad++ is a free source code editor and Notepad replacement that supports several languages.
