The Daily Click ::. Forums ::. Klik Coding Help ::. Help with Zip, List and File Objects Please?
 

Post Reply  Post Oekaki 
 

Posted By Message

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
23rd March, 2004 at 13:37:52 -

Hey guys,

(I'm using MultimediaFusion 1.5)

I'm trying to make a little file zipping application, but having trouble with the following:

1st question...

Here's my 'code'


user clicks in zone
Open file selector
Add line "ValueFileSel$"


This adds the full path of the file as a line in the list, however, the list has no horizontal scroll so all the data cannot be seen by the user. All I want to come up in the list is the file name, for example:

Instead of

c:\windows\desktop\n00bgame.exe

I'd like to just have n00bgame.exe added to the list

2nd question...

How do I save the created zips to a user selected directory?
I can't find the zip object example that came with it so hopefully some of you Clicker pros can help!

Many thanks



 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

Rycon



Registered
  20/09/2002
Points
  996
23rd March, 2004 at 14:11:24 -

Though I cant help ya with your application, you probly have already used Winzip, but I must suggest it rather then having you waste your time with somthing already done (and better ). Or you could use PKzip wich can be used through a command line (batch file) wich you could alter and launch it with mmf.

 
We are the music makers, we are the dreamers of dreams...

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
23rd March, 2004 at 15:00:27 -

Lol, yeah I'm aware of Winzip... I just like trying to make all sorts of apps. Plus, it's ashame for the creator of the Zip object if nobody uses his extension

Oh, and if I were to make a zip app it certainly wouldn't have the features and professionalism of Winzip, but it certainly would be free

 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
23rd March, 2004 at 16:27:31 -

With 1, you could use String Parser, with a "/" delimiter (string item separator) then get the last item. I've never used Zip, sorry.

 
gone fishin'

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
23rd March, 2004 at 16:34:40 -

the zip object can be used to unzip stuff for a game, like skins or add-ons, you don't have to use it to make a zip program. Winzip is free

 
n/a

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
23rd March, 2004 at 16:36:06 -

Winzip has a 21-day evaluation period. 9.0 does, anyway.

 
gone fishin'

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
23rd March, 2004 at 16:47:06 -

Yeah I suppose winzip is techincally free, but to actually OWN a copy and remove nag screen and create a legally distributable .exe you have to pay, which is something I don't like doing...
BTW Thanks Shen, I'm trying de-limiter but someone told me about the tree object which seems to do the job also

 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

Mr Icekirby



Registered
  18/12/2003
Points
  846
23rd March, 2004 at 20:36:20 -

i didn't pay for my winzip, i didn't steal it either... it has no nag screen, i've used it for quite a while... and the zip extension is good for things like save files, you just add a really odd password so people can't edit your save files

 
Mr Icekirby says so!
OBEY ME!

Rycon



Registered
  20/09/2002
Points
  996
23rd March, 2004 at 20:58:35 -

If you think about it, the people who made winzip are very very kind, they COULD charge everybody after the 21 day trial, but no they offer it free with a nag screen. The program is in my opinion an advancement in computer technology, think of how usefull it is, saving you time and money (In some cases).

They deserve money, for making everybodys life easier.

 
We are the music makers, we are the dreamers of dreams...

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
24th March, 2004 at 00:41:09 -

Nova-Software to answer your question, use the "Common Dialog Object".
it does the same job as the File Object, if not better plus it has more commands.
----------------------------------------------------
Heres the Code:
User clicks in Zone:
Show open dialog

After Open Dialog:
Add line "GetFileTitle$( "Common Dialog object" )"
----------------------------------------------------
this will just get "n00bgame.exe" instead of the full path.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
24th March, 2004 at 12:29:22 -

if we had to pay for zip programs, then no-one would be able to un-zip (because who would wanna pay ) Also, no-one could compress anything, Crazzzy

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
24th March, 2004 at 12:34:58 -

you seem to forget that windows ME and above comes with a built in compressor and decompressor that creates zip files (and can also encrypt them)... and also that there are plenty of other alternitves, like RAR. winzip is far from holding a monopoly...

 
www.thenatflap.co.uk

Rycon



Registered
  20/09/2002
Points
  996
24th March, 2004 at 18:36:34 -

Well no I dont think they are holding a monopoly, but you DO have to pay for winrar last time I checked.

 
We are the music makers, we are the dreamers of dreams...

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
25th March, 2004 at 07:50:11 -

actually i think you can use the winrar trial for as long as you like, all you get is a nag screen.

 
www.thenatflap.co.uk
   

Post Reply



 



Advertisement

Worth A Click