Jump to content



Photo

ZIP File Creation in Pure AutoIt by Spyrorocks and the DtTvB


  • Please log in to reply
16 replies to this topic

#1 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 17 December 2006 - 04:49 AM

Well, after 4 hours of working, I, and spyrorocks finally did it!

Here is the source code: Attached File  source.zip   12.8K   1426 downloads
Actually, the source code zip file was made using this script also.

Limitations:
  • You must create a folder first or the archive may corrupt.
  • No compression, man!
Credits:If you see any bugs please report.

the DtTvB





#2 dandymcgee

dandymcgee

    Valik's #1 Fan

  • Active Members
  • PipPipPipPipPipPip
  • 812 posts

Posted 17 December 2006 - 05:10 AM

Wow, that's cool! Interesting idea, and great work going through with it. This is definately useful in many ways, I'm sure somebody will greatly appreciate this when they happen to need it. Keep up the excellent work, both of you, I can't wait to see what you can come up with next.

Edited by dandymcgee, 17 December 2006 - 10:32 PM.

- Dan [Website]

#3 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 17 December 2006 - 05:15 AM

Here is the website that have the compression code, but not in AutoIt: http://www.zlib.net/

I think doing that without calling a DLL in AutoIt would be very hard, and maybe slow.

#4 The Kandie Man

The Kandie Man

    All Your Base Are Belong To Us

  • Active Members
  • PipPipPipPipPipPip
  • 950 posts

Posted 17 December 2006 - 05:20 AM

Very good. This will make it much easier to add a sort of database functionality to an autoit script.

I warn about adding compression code to it though, the compression code would run real slow in autoit. The best way to do it would be to use an external dll file written in a much faster lower level language like c or c++. This would destroy the point of compiling the script with no external libraries, but when i wrote a patcher in autoit, autoit was impossibly slow at manipulating binary data. The same program written in c++ could do it instantly. So i just ended up re-writing the patcher in a faster language. :P

Good work, but just a heads up if you plan to persue this.

-The Kandie Man
"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

#5 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 17 December 2006 - 12:20 PM

Yeah, this script's aim is to produce a ZIP file in pure AutoIt with good speed, I don't think the compression may be used.

#6 spyrorocks

spyrorocks

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 728 posts

Posted 17 December 2006 - 05:27 PM

The compression is not needed.

#7 WhiteTiger

WhiteTiger

    Seeker

  • Active Members
  • 44 posts

Posted 17 December 2006 - 05:54 PM

DAMN ! this is realy great ! very very very much credits to the makers , damn i have looked at this alot , its the best AutoIt script i have ever seen !

#8 FuryCell

FuryCell

    A cornered fox is more dangerous than a jackal!

  • Active Members
  • PipPipPipPipPipPip
  • 2,437 posts

Posted 17 December 2006 - 06:45 PM

Nice! A zip func in pure Au3. I can see several uses for this.

Thanks for sharing. :P
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

#9 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 17 December 2006 - 07:02 PM

This is really good. It has great potential because there is nothing external needed.
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

#10 spyrorocks

spyrorocks

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 728 posts

Posted 17 December 2006 - 09:44 PM

Extrnal dlls for zipping are a pain.

#11 Who

Who

    Wayfarer

  • Active Members
  • Pip
  • 62 posts

Posted 23 July 2007 - 01:46 PM

Thread started on Dec 16 2006 and now the program doesn't work at all. :whistle:

#12 t68kv

t68kv

    Seeker

  • New Members
  • 1 posts

Posted 18 August 2007 - 03:21 PM

bro do you have pure autoit code of unziping zip files? ty

#13 GtaSpider

GtaSpider

    Polymath

  • Active Members
  • PipPipPipPip
  • 209 posts

Posted 20 December 2007 - 04:16 PM

Hi

Respekt. But this version dont Work for the new AutoIt version.
I've changed it a little bit, and i have found a soulution to make it work with AutoIt 3.2.9.0 or greater.

The file is on the Attachment.

Mfg / Best Regards, Spider

Attached Files


www.AutoIt.de - Moderator of The German AutoIt FroumPosted Image


#14 microsoft

microsoft

    Wayfarer

  • Active Members
  • Pip
  • 67 posts

Posted 26 December 2007 - 01:26 PM

Thanks

#15 ToyleY

ToyleY

    Wayfarer

  • Active Members
  • Pip
  • 50 posts

Posted 26 December 2007 - 05:19 PM

test-1.txt is corrupted in the output zip.

#16 Ram

Ram

    Prodigy

  • Active Members
  • PipPipPip
  • 152 posts

Posted 23 January 2008 - 06:00 PM

will this work for zipping a folder? if so how?

#17 Jango

Jango

    Polymath

  • Active Members
  • PipPipPipPip
  • 202 posts

Posted 28 January 2008 - 09:39 AM

This is really good. It has great potential because there is nothing external needed.


spyrorocks, do you things it's possible to call the zip function as raw machine code like in this script ?

executing raw machine code

This will be :

1) Really Faaaaast
2) All embeded in autoit code

but where to find the raw machine code zip function code...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users