Jump to content

PNG Drop Box


PERTU
 Share

Recommended Posts

Hi,

I've never messed with GUIs before. What I want to do is create a GUI that displays only a PNG, with no border, menu or "X" button. When I drag & drop files onto it, I want the path of the files stored into an array.

Anybody can help me out?

Thanks,

0livier.

Link to comment
Share on other sites

Hi,

I've never messed with GUIs before. What I want to do is create a GUI that displays only a PNG, with no border, menu or "X" button. When I drag & drop files onto it, I want the path of the files stored into an array.

Anybody can help me out?

Thanks,

0livier.

Check the example attached. You can drag files and Msgbox tells you the files.

Use StringSplit() for convert to array. :whistle:

Suggestion: Take a look to Helpfile for GUI functions.

au3_logo_dragdropfiles.au3

post-458-1183493246_thumb.png

Link to comment
Share on other sites

Check the example attached. You can drag files and Msgbox tells you the files.

Use StringSplit() for convert to array. :whistle:

Suggestion: Take a look to Helpfile for GUI functions.

I get this error message:

---------------------------

AutoIt Error

---------------------------

Line 2321 (File "C:\Program Files\AutoIt3\Include\A3LGDIPlus.au3"):

Return $aResult[0] <> 0

Return $aResult^ ERROR

Error: Subscript used with non-Array variable.

---------------------------

OK

---------------------------

I'm using AutoIt v3.2.4.9 and Auto3Lib downloaded july 3rd (I don't know how to check the version).

Any idea what's wrong?

Thank you,

Olivier.

Edit:

I got the same error with a script from lod3n and he believes it's a bug in Auto3Lib. I've ask PaulIA to take a look to be sure.

Edited by PERTU
Link to comment
Share on other sites

i have tried Auto3Lib in the past, i wish someone would either debug it or complete rewrite it where it is understandable. I don't use it because it had destroyed to many scripts to my likings. :whistle:

http://www.autoitscript.com/forum/index.ph...st&p=367613

As I'm doing this I create examples and test.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

i have tried Auto3Lib in the past, i wish someone would either debug it or complete rewrite it where it is understandable. I don't use it because it had destroyed to many scripts to my likings. :whistle:

Instead of bitching and moaning, how about reporting any bugs so that they could be fixed or asking for help when you don't understand. Nah, that would rob you of the opportunity to post crap as this. Edited by PaulIA
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Yes, I saw the thread about this possible bug in the Auto3Lib.

Well, at least you have the concept in the example (for drag n' drop).

The "bug" I had was not a bug. I needed to download the GDI+ redist since I'm on Windows 2k. I tested your script and it works perfectly.

Thanks a lot.

Olivier.

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...