PERTU Posted July 3, 2007 Share Posted July 3, 2007 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 More sharing options...
Josbe Posted July 3, 2007 Share Posted July 3, 2007 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. Suggestion: Take a look to Helpfile for GUI functions.au3_logo_dragdropfiles.au3 AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
PERTU Posted July 4, 2007 Author Share Posted July 4, 2007 (edited) Check the example attached. You can drag files and Msgbox tells you the files. Use StringSplit() for convert to array. 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 July 4, 2007 by PERTU Link to comment Share on other sites More sharing options...
Josbe Posted July 4, 2007 Share Posted July 4, 2007 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). AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Somerset Posted July 4, 2007 Share Posted July 4, 2007 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 4, 2007 Share Posted July 4, 2007 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. http://www.autoitscript.com/forum/index.ph...st&p=367613As 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 More sharing options...
Somerset Posted July 4, 2007 Share Posted July 4, 2007 http://www.autoitscript.com/forum/index.ph...st&p=367613As I'm doing this I create examples and test.glad someone is.. Link to comment Share on other sites More sharing options...
PaulIA Posted July 5, 2007 Share Posted July 5, 2007 (edited) 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. 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 July 5, 2007 by PaulIA Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
PERTU Posted July 5, 2007 Author Share Posted July 5, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now