Jump to content

[Solved]_@GUI_DRAGFILE


Recommended Posts

This works nice & gets the file location, there is just 1 little problem. If I Drag & Drop multiple files I get the full filepath of the last selected file, But i need them all. Any idea how to accomplish that? is there any way to put all filepaths into an array??

Sample Code:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$parent = GUICreate("test",200,200,-1,-1,-1,$WS_EX_ACCEPTFILES)

$button1 = GuiCtrlCreateButton("Test",10,10,75,25,$BS_ICON)
GuiCtrlSetState($button1,$GUI_DROPACCEPTED)

GUISetState()

Do
    $msg = GUIGetMsg()

    if $msg = $GUI_EVENT_DROPPED then
    MsgBox(0,"Test",@GUI_DROPID & " " & @GUI_DRAGFILE)
    endif

Until $msg = $GUI_EVENT_CLOSE

EDIT: THanx

Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...