Indigo Rose Software
  #1  
Old 02-01-2008
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
Zip.AddFolder

Hello.

Zip.Add does not add Folders.
What I'm suggesting is 2 separate functions instead of just one,

Zip.AddFile
Zip.AddFolder


Thanks,
Mina
Reply With Quote
  #2  
Old 02-01-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Its All About Folders !

Yes, i also think you should bring all the other objects functions in line with the sideshow object (SlideShow.FillFromFolder)

ListBox.FillFromFolder
Combo.FillFromFolder

both adding the filename as text and path as data
Reply With Quote
  #3  
Old 02-01-2008
FoxLeader's Avatar
FoxLeader FoxLeader is offline
Forum Member
 
Join Date: Nov 2006
Location: Quebec, Canada.
Posts: 432
Thumbs up

I agree with both of you
+1
Reply With Quote
  #4  
Old 02-01-2008
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
Quote:
Originally Posted by RizlaUK View Post
Yes, i also think you should bring all the other objects functions in line with the sideshow object (SlideShow.FillFromFolder)

ListBox.FillFromFolder
Combo.FillFromFolder

both adding the filename as text and path as data
Hi Rizla.
This would be a nice addition. However, you can accomplish this for now using functions. (Didn't test, but should work out fine)

Code:
function ListBox.FillFromFolder(LB_Name, fPATH)
 fi_PATHS = File.Find(fPATH, "*.*", false, false, nil, nil);
 if fi_PATHS == nil then
   Application.ExitScript();
 end

for j, fi_PATH in fi_PATHS do
fi_PART = String.SplitPath(fi_PATH);

ListBox.AddItem(LB_Name, fi_PART.Filename, fi_PATH);
end

end

function Combo.FillFromFolder(CB_Name, fPATH)
 fi_PATHS = File.Find(fPATH, "*.*", false, false, nil, nil);
 if fi_PATHS == nil then
   Application.ExitScript();
 end

for j, fi_PATH in fi_PATHS do
ComboBox.AddItem(CB_Name, fi_PART.Filename, fi_PATH);
end

end


Code:
-- Call Like This
ListBox.FillFromFolder("ListBox1", "AutoPlay\\MyFolder")
Combo.FillFromFolder("ComboBox1", "AutoPlay\\MyFolder")
Reply With Quote
  #5  
Old 02-02-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Thanks Mina, but i already have a set of listbox and combo functions i use quite regular and i just thought these ones would be of use to nearly every-body who uses AMS.

Also, ListBox.FilesToZip() would be another nice function to have to go with ListBox.FillFromFolder(), and SlideShow.FilesToZip().....and....lol the list is endless

i might go write a mega lua plugin with all the *missing* functions
Reply With Quote
  #6  
Old 02-04-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Hi Guys,

I had a couple questions regarding your requests.

1) As far as the Zip.AddFolder suggestion, could you explain a little further how what you're describing differs from the current functionality in the Zip.Add action given the use of wildcards and the "IncludeFolderNames" parameter?

2) The suggestions regarding the ListBox and ComboBox folder actions, what were you guys looking for. The slideshow is a little different in that you are always working with files. What were you guys thinking for the functionality of the action in the ListBox and ComboBox. Something like the "Text" being the filenames, and the "Data" being the full paths to the files?
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #7  
Old 02-19-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Quote:
As far as the Zip.AddFolder suggestion, could you explain a little further how what you're describing differs from the current functionality in the Zip.Add action
getting the actual folder structure in the zip can be quite tricky for the novice user, i know it took me a while, a "AddFolder" function could maybe wrap the "AddFile" function and make it a little easer to just zip a folder


Quote:
Something like the "Text" being the filenames, and the "Data" being the full paths to the files?
exactly what i was thinking, i know its very much a targeted function but proberly a very widely used targeted function, im sure everyone at some point will use a listbox for files/folders


edit, while on the subject of zip files, how about SFX support ??, i get errors if i try to add files to a SFX exe
Reply With Quote
  #8  
Old 02-20-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thanks for the suggestions.

FillFromFolder - REF: 17273
Zip action - REF: 17272
SFX support - REF: 17274
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software