View Full Version : Free Plugin : RAR Plugin
AMSWaves
07-30-2008, 01:17 PM
Hi All.
We Released a new plugin.
Some Times Some body wants to work with rar files in AMS ( Autoplay Media Studio ), but AMS dont have any built-in function for work with rar files, so we decide to create a plugin.
with this plugin you just can get information of rar files, get contents and extract files from rar files.
if you see any bug or you have any suggest for improve it please tell us.
Thanks.
Enjoy it!
E-Mail (support@amswaves.com)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Version 1.0.0.0
Please Reply:yes
ShadowUK
07-30-2008, 01:19 PM
I would download if AMSW was not in the title of every single function. RAR would be a lot easier to type.
AMSWaves
07-30-2008, 01:24 PM
I would download if AMSW was not in the title of every single function. RAR would be a lot easier to type.
hi.
we create our plugins free and this (AMSW) is our Copyright.
Why you want we delete this ?
ShadowUK
07-30-2008, 01:27 PM
hi.
we create our plugins free and this (AMSW) is our Copyright.
Why you want we delete this ?
Don't you put it in the box where you select the plugin?
I mean, It's easy to find out. Just look on the select thingy.
AMSWaves
07-30-2008, 01:35 PM
Don't you put it in the box where you select the plugin?
I mean, It's easy to find out. Just look on the select thingy.
Ok. if all body wants this, we change our product.
for now test it and report suggests an bugs.
thanks for your suggest.
RizlaUK
07-30-2008, 02:06 PM
I would download if AMSW was not in the title of every single function. RAR would be a lot easier to type.
so he offers a plugin that a lot of people have waited a long time for and you respond with that^^,
now thats gratitude !!
@AMSWaves, autoplay application crashes when trying all 3 functions, no error, just crashes
autoplmst6
07-30-2008, 02:08 PM
I got same error ( with no codes id) than Rizlauz :wow
ShadowUK
07-30-2008, 02:36 PM
so he offers a plugin that a lot of people have waited a long time for and you respond with that^^,
now thats gratitude !!
@AMSWaves, autoplay application crashes when trying all 3 functions, no error, just crashes
I could'nt think of anything else to say. :wow
AudioSam
07-30-2008, 02:42 PM
I think we all need a nip... or a nap...
Something to help us be nice... LOL
Hello to everyone.
I'm still trying to get better at AMS.
Have a great day,
AudioSam
Ulrich
07-30-2008, 03:31 PM
Having coded with RAR in the past, allow me to chime in here...
First of all, your plugin will need the original UnRAR.dll to work. In your example project, you are not shipping the required UnRAR.dll, which can lead to versioning trouble. Somebody might use a different version of the dll, incompatible with the version you used to compile the plugin. So, for starters, ship the dll. A mention of the original author and the official site (http://www.rarlab.com/rar_add.htm) would be nice, too.
Second, did you call RARGetDllVersion() to make sure the dll can be found where it is expected and is the same version as needed, before calling any further functions?
And last but not least, I am curious how do you handle the problem that the UnRAR.dll has to be placed in the same folder as your AMSWRar.lmd, but won't be copied to the destination folder by AMS when publishing the project to a web/mail executable?
Ulrich
Ulrich
07-30-2008, 04:12 PM
Completing my last post after trying a bit more without success to get around the crash... I assumed that the UnRAR.dll is needed, because we were discussing it here right a few days ago. On the other hand, you may have used the portable source code to build your plugin, however then it wouldn't make sense getting these crashes... :huh So, what is the story?
AMSWaves
07-30-2008, 04:14 PM
@AMSWaves, autoplay application crashes when trying all 3 functions, no error, just crashes
RizlaUK, thanks for test it.
but i check it and dont see that bug you said, please create an example for us.
AMSWaves
07-30-2008, 04:26 PM
hi upeters.
with this plugin you never need UnRAR.dll.
RizlaUK
07-30-2008, 04:31 PM
i used your example, downloaded, extracted, previewed and crashed!
AMSWaves
07-30-2008, 04:34 PM
i used your example, downloaded, extracted, previewed and crashed!
Sorry, which windows you use ?
Ulrich
07-30-2008, 04:37 PM
Yeah, same crash here - this is why I suspected that the dll was missing. XP SP3 here.
http://www.mindquake.com.br/files/ams/SNAG-080730-01.png
AMSWaves
07-30-2008, 04:47 PM
i think this error comes when you use get content and get information.
this methods good worked on XP SP2, whether when you use extract this error comes or not ?
this error not coherent to missing that dll.
RizlaUK and upeters thanks for report big bug .
Hi All.
We Released a new plugin.
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Version 1.0.0.0
Dead link report
Esfahan
07-31-2008, 01:21 AM
Hi
It work nice for me.
Thanks for this good job:yes
Q:
1- have i installed winrar is necessary ?
2- Vista compatible ?
Dead link report
That's OK now.
AMSWaves
07-31-2008, 06:18 AM
Hi
It work nice for me.
Thanks for this good job:yes
Q:
1- have i installed winrar is necessary ?
2- Vista compatible ?
1. No, you don't have to install winrar.
2. No it's not compatible with Vista yet.
ShadowUK
07-31-2008, 06:26 AM
I would download if AMSW was not in the title of every single function. RAR would be a lot easier to type.
Let me rephrase that.
I downloaded and tested in Vista and it crashed, It's a very good contribution to AMS and I appreciate the work you have put into it.
I would also like to suggest that you simply keep the functions to something like 'RAR' instead of 'AMSWRar' as it is easier to remember and type.
If you're worried about copyright you should just keep that information in the select box which I see you have done.
I'm getting a little stressed out because I'm getting my xbox 360 tomorrow so I'm bouncing off walls really.
RizlaUK
07-31-2008, 06:45 AM
Let me rephrase that.
well, i dont care what the functions are called, as long as they work, and they dont :eek:
I'm getting a little stressed out because I'm getting my xbox 360 tomorrow so I'm bouncing off walls really.
calm down dude, you'll be to stressed to play ;)
Games: GTA4 i hope, i had a stint on that last week, loved it
Esfahan
07-31-2008, 07:16 AM
Ok :)
this plugin is a real and useful plugin
I am hoping it done on Vista in next time.
ShadowUK
07-31-2008, 09:43 AM
well, i dont care what the functions are called, as long as they work, and they dont :eek:
calm down dude, you'll be to stressed to play ;)
Games: GTA4 i hope, i had a stint on that last week, loved it
Yeah, I'll consider it if my xbox hasnt exploded due to Red ring of death, and it will look nice with HDTV
Imagine Programming
07-31-2008, 09:57 AM
Yeah, I'll consider it if my xbox hasnt exploded due to Red ring of death, and it will look nice with HDTV
Red ring of death, you 2?:o my Xbox crashed yesterday... it's a motherboard problem darnit... now i need to buy a new one but i am not gonna.... don't have the cash:p
ShadowUK
07-31-2008, 10:39 AM
Red ring of death, you 2?:o my Xbox crashed yesterday... it's a motherboard problem darnit... now i need to buy a new one but i am not gonna.... don't have the cash:p
Send it back and they'll fix it?
siray
07-31-2008, 01:32 PM
Thanks 4 your plugin AMSWaves ;)
Imagine Programming
07-31-2008, 02:49 PM
Send it back and they'll fix it?
my guarantee expired 6 months ago... so buying a new Xbox360 will cost me the same amount of money:p
right now i play Halo2 on my old Xbox... you know that huge green thing:p...
qwerty
08-01-2008, 08:39 AM
i downloaded the demo, but it wont load :(
AMS simply gives a generic "ERROR: Cant load apz" message, no other details as to why, i am still using AMS 6, could this be the reason ?
Esfahan
08-01-2008, 09:22 AM
but it work nice for me on XP SP2 OS.
123456789
08-01-2008, 10:37 AM
türkçe anlayna varsa bu nasıl kurluyor ben demo ya bakarken hata veriyor.acaba nasıl yardım eder msiniz?
I can't speak English. sorry...
ShadowUK
08-01-2008, 02:07 PM
my guarantee expired 6 months ago... so buying a new Xbox360 will cost me the same amount of money:p
right now i play Halo2 on my old Xbox... you know that huge green thing:p...
Was thinking of buying that one. Is it worth it?
Imagine Programming
08-01-2008, 07:13 PM
Was thinking of buying that one. Is it worth it?
If you like the classic Xbox games, yeah it's **** well worth it:D wanna trade it for ur 360? :p xD
sillybob123
08-02-2008, 08:58 AM
This is the error i recieved was i correct to run the installer found at the download link then open the ams demo?
RizlaUK
08-02-2008, 10:46 AM
yup, i get exactly the same
i think ... this plugin might contain a bug :eek:
Imagine Programming
08-02-2008, 07:07 PM
yup, i get exactly the same
i think ... this plugin might contain a bug :eek:
Yep got that aswell... i think that shouldn't pop up :D
Esfahan
08-02-2008, 11:11 PM
please, someone test it as Web/Email Executable method on Vista OS and Reply here
AMSWaves
08-03-2008, 04:36 PM
Hi All.
Released new version (1.0.1.0)
In this we fixed some bugs but we never can guaranty this plugin worked on all os platform, sorry.
this plugin have some change , in this version you must use Rar.* Instead Of AMSWRar.* look on the demo or help url.
Best Regards,
AMSWaves.
E-Mail (support@amswaves.com)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
clueless
08-03-2008, 04:44 PM
so does this zip up in rar format?
RizlaUK
08-03-2008, 04:45 PM
still getting the crash on all 3 functions
Dermot
08-03-2008, 05:09 PM
Still crashes for me too.
XP SP2 Media Centre.
Imagine Programming
08-04-2008, 12:34 PM
Same here...
AMSWaves
08-06-2008, 11:32 AM
still getting the crash on all 3 functions
Hi RizlaUK Sorry for this.
which windows you use ?
AMSWaves
08-06-2008, 11:46 AM
Still crashes for me too.
XP SP2 Media Centre.
Hi Dermot, we install windows Media Center SP2 and it good worked.
Imagine Programming
08-06-2008, 01:21 PM
Hi RizlaUK Sorry for this.
which windows you use ?
I use Win XP pro SP2... i do get errors on all three functions...
RizlaUK
08-06-2008, 04:07 PM
i tested it on Win XP SP3
reteset
08-07-2008, 01:18 PM
AMSWaves if your plugin works on your system and
does not work on our systems this means there is a dependency problem
are you sure that your plugin does not require a runtime library or another dll
i proffer,check your plugin for that direction
does plugin requires unrar.dll ..?
can i ask which programming language did you use
AMSWaves
08-07-2008, 05:05 PM
Hi All.
New Version (1.0.2.0) Released.
in previous version we find a very bad bug and fix it. if you want see this bug in previous Version of AMSWRar, You must create a big rar file (.rar) or sfx rar file (.exe) (about 4~5 GB) and GetInfo of it then you see a very very bad bug (See Below).
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
E-Mail (support@amswaves.com)
Best Regards,
AMSWaves.
AMSWaves
08-07-2008, 05:43 PM
I use Win XP pro SP2... i do get errors on all three functions...
Hi C B programming and webdesign,
this plugin worked on XP SP2, and i can't say anything for this, sorry.
Imagine Programming
08-07-2008, 05:47 PM
Error: 02 .... that error popped up before i started AMS... and when i started ams... and many many times after on almost every action AMS executed...
RizlaUK
08-07-2008, 06:05 PM
AMSWaves if your plugin works on your system and
does not work on our systems this means there is a dependency problem
are you sure that your plugin does not require a runtime library or another dll
i proffer,check your plugin for that direction
does plugin requires unrar.dll ..?
can i ask which programming language did you use
AMSWaves, please answer as reteset is a very skilled programer and mayby able to help fix all these bugs, this would be a very cool plugin if it was stable
AMSWaves
08-07-2008, 06:32 PM
HI reteset,
AMSWaves if your plugin works on your system and
does not work on our systems this means there is a dependency problem
are you sure that your plugin does not require a runtime library or another dll
i proffer,check your plugin for that direction
i build an ams Application with our plugin and test it on very very machine with different OS (Windows X86) and it good worked, this plugin dont have dependency from our machine.
if this plugin crashed on XP SP3, i can't say anything because i never see XP SP3 hitherto, but i can buy it and install for our team.
does plugin requires unrar.dll ..?
yes this plugin requires unrar.dll but this plugin have unrar.dll included.
Imagine Programming
08-08-2008, 06:20 AM
HI reteset,
i build an ams Application with our plugin and test it on very very machine with different OS (Windows X86) and it good worked, this plugin dont have dependency from our machine.
if this plugin crashed on XP SP3, i can't say anything because i never see XP SP3 hitherto, but i can buy it and install for our team.
yes this plugin requires unrar.dll but this plugin have unrar.dll included.
I use WinXP Pro sp2 but it isn't working, i got that 02 error...
AMSWaves
08-08-2008, 06:54 AM
I use WinXP Pro sp2 but it isn't working, i got that 02 error...
Hi C B programming and webdesign,
please download this and extract it on your temp Directory, maybe your problem solved.
For Examp (Temp Dir) :
C:\Documents and Settings\AMSWaves\Local Settings\Temp
RizlaUK
08-08-2008, 07:20 AM
error code 02, still not working
Imagine Programming
08-08-2008, 09:34 AM
error code 02, still not working
No indeed, and there is already a unr.dll in my temp... besides that, i use winrar...
AMSWaves
08-09-2008, 12:58 PM
Hi RizlaUK and C B programming and webdesign,
error 02 said plugin can't LoadLibrary() , we dont know why this error comes on xp sp2 but if you create a program with this plugin an test it on other machines you can see it worked.
we Stop our work on AMSWRar until buy a XP SP3 and now we work on a new plugin.
Sorry.
Best Regards,
ANSWaves.
RizlaUK
08-09-2008, 01:32 PM
ah well, it was a nice tought
ShadowUK
08-09-2008, 03:06 PM
reteset has a RAR plugin Rizla, look on amsplugins.com in the LMD section.
Any idea what the next plugin will be AMSWaves?
AMSWaves
08-09-2008, 03:43 PM
for Now we dont have any idea, maybe you have an idea for next plugin.
RizlaUK
08-09-2008, 03:49 PM
reteset has a RAR plugin Rizla, look on amsplugins.com in the LMD section.
nice :yes, reteset keeped that quite! ;)
Imagine Programming
08-09-2008, 05:54 PM
Hi RizlaUK and C B programming and webdesign,
error 02 said plugin can't LoadLibrary() , we dont know why this error comes on xp sp2 but if you create a program with this plugin an test it on other machines you can see it worked.
we Stop our work on AMSWRar until buy a XP SP3 and now we work on a new plugin.
Sorry.
Best Regards,
ANSWaves.
uhm well i can't even test it on other systems, i get that 02 error on AMS startup, when it's loaded, when i build the project and many more times when i run the project...
RizlaUK
08-09-2008, 06:11 PM
i get that 02 error on AMS startup, when it's loaded, when i build the project and many more times when i run the project...
Ha Ha, me to
retesets rar action plugin works a charm for me on xp sp3, anyone tested it on vista ?
Pelican
08-11-2008, 12:07 AM
for Now we dont have any idea, maybe you have an idea for next plugin.
Could you have a look at making a Plugin for BartPe the best startup disk maker I have ever found, pls follow the link.
http://www.nu2.nu/pebuilder
rexzooly
08-11-2008, 06:53 AM
Could you have a look at making a Plugin for BartPe the best startup disk maker I have ever found, pls follow the link.
http://www.nu2.nu/pebuilder
BartPE is a XPE Builder i know this cos o used it many times it is a good tool
and dose need many plugins but its nothing to do with ams and i think the point of a BartPE is to have almost nothing running thats not needed to repare your system.
Pelican
08-11-2008, 08:52 AM
BartPe does start Windows with the least amount running. I believe that it can be useful in APMs. AMSWaves were lost for ideas, and I would like to see a plugin made. Just because you may not see any usefulness it doesn't mean they don't exist.
RizlaUK
08-11-2008, 09:57 AM
Just because you may not see any usefulness it doesn't mean they don't exist.
maybe, but i agree with rex
Plugin WishList:]
Better combo object, with boarder settings
Listicon object, comctl32 listicon
Image object, that can load a image from a memory pointer or resource file
Spin object,
Group object
Tab Pannel object,
there are many many more usefull stuff that i would like to see.
ShadowUK
08-11-2008, 10:50 AM
maybe, but i agree with rex
Plugin WishList:]
Better combo object, with boarder settings
Listicon object, comctl32 listicon
Image object, that can load a image from a memory pointer or resource file
Spin object,
Group object
Tab Pannel object,
there are many many more usefull stuff that i would like to see.
Maybe a legend, if we don't want to use shape :p
Pelican
08-11-2008, 12:21 PM
However I saw the post from AMSWaves, and thought that I would ask. I know that there are huge amount of improvements that can benefit APMS. I just think that IR could be a bit more helpful in that direction. One of the reasons that I asked for that plugin is not to incorporate a plugin from APMS to BartPE but to get the plugin to work from BartPE to APMS.
As stated previously BartPE boots using bugger all of Windows. That is what it is meant to do. But it can do lots of other things as well after it has started.
If BartPE can initiate APMS applications and be usable, then I think there are massive opportunities.
I suppose it's up to the plugin Gurus if they want to do it or not. BartPR is Freeware, and people are invited to make plugins.
I only thought i'd ask.
HMMurdock
08-11-2008, 02:01 PM
Could you have a look at making a Plugin for BartPe the best startup disk maker I have ever found, pls follow the link.
http://www.nu2.nu/pebuilderMaybe you could clarify exactly what you are looking for...
A plugin for BartPE that would run AMS would be off topic in this forum, and probably a violation of the IR License Agreement.
Since BartPE is essentially a stripped down OS, suggesting an AMS plugin for it is akin to asking for a WindowsXP plugin. You may want to suggest some sort of functionality that you would like for the plugin instead of suggesting a platform to run it on.
rexzooly
08-11-2008, 02:24 PM
yes that would be more understanable and also if you might of noted there as been no update on BartPe for 2 years i have emailed the programmer to bring
it back as the installer is still very buggy and i would love to see my yes BartPe
was at on point be the boot for wintex OS but it was missing way to many items i needed as a core so i ended up doing my own striped down version of XP got board and droped the project as time is money these days.
But bartPE would be nice to come back sometime i think this is a topic for Dev part tho ......
I would like to see maybe the installer interated in with AMS it would make more sence maybe to me i don't know or maybe a firefox contral function that works. lol
Pelican
08-12-2008, 02:03 AM
I cannot see how it would infringe IR's licence, as it would only be starting an app that someone had written using APMS.
As far as it not being part of this thread, I can agree, but I only answered a post, then u guys jumped on me.
AMSWaves
08-13-2008, 10:14 AM
Hi All,
Plugin WishList:]
Better combo object, with boarder settings
Listicon object, comctl32 listicon
Image object, that can load a image from a memory pointer or resource file
Spin object,
Group object
Tab Pannel object,
Hi RizlaUK,
thanks for your suggests, we know AMS dont have this objects but for now we just create Action Plugin.
AMSWaves
08-13-2008, 05:39 PM
Our forum now is up, please post your suggest on it.
Thanks.
Forum (http://www.amswaves.com/forum)
rexzooly
08-13-2008, 06:05 PM
SP3 is also a free update all XP users can user it no matter wat. i don't user SP3 as it dose kill alot of programs this is meant to do this as MS want you to move to Vista it as brickws over 60 Test PC's and still no reason why or no bug
that MS state so this leave it to the fact it was made to do that. i wont install any updates after SP2 and its fixers.
I will test this later.
RizlaUK
08-14-2008, 06:05 AM
sp3 did cause me a few problems at first install, wiped out my internet as well as make some apps crash, so a clean install of xp and install sp3 and all is ok this time round, but its true, sp3 did cause a lot of people a lot of problems
ShadowUK
08-14-2008, 10:22 AM
sp3 did cause me a few problems at first install, wiped out my internet as well as make some apps crash, so a clean install of xp and install sp3 and all is ok this time round, but its true, sp3 did cause a lot of people a lot of problems
I slipstream the Service Pack, and create another DVD for installing windows everytime they release a new one.
longedge
08-14-2008, 10:30 AM
There's an interesting read at Windows Secrets (http://windowssecrets.com/) about Windows Updates.
Imagine Programming
08-14-2008, 11:36 AM
kinda stupid though, still updating when its turned off :o
rexzooly
08-14-2008, 09:13 PM
There's an interesting read at Windows Secrets (http://windowssecrets.com/) about Windows Updates.
can i have the full link to it please?
:yes
Imagine Programming
08-14-2008, 10:44 PM
can i have the full link to it please?
:yes
Yes, it's here (http://windowssecrets.com/2008/08/14/03-Youll-get-a-new-Windows-Update-like-it-or-not):)
rexzooly
08-15-2008, 04:20 AM
Yes, it's here (http://windowssecrets.com/2008/08/14/03-Youll-get-a-new-Windows-Update-like-it-or-not):)
Thank you so much sir C B.:yes
Imagine Programming
08-15-2008, 10:05 AM
Thank you so much sir C B.:yes
No problem, sir rexzooly :p
AMSWaves
09-07-2008, 03:46 PM
Hi All.
We released new Version of AMSWRar plugin (1.0.3.0), and fix bugs.
Add :
Rar.GetVersion() ; Returns API version.
Change :
Rar.Extract() ; now Returns "OK" if file(s) extracted successfully and return nil if an error occured.
Very very very ver... Thank to Beta Testers (C B programming and webdesign and Dermot).
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Forum (http://forum.amswaves.com/viewtopic.php?f=6&t=3)
Best Regards,
AMSWaves.
Imagine Programming
09-07-2008, 05:46 PM
No problem mate:) this is a very nice plugin!:D i'll test some more on other and older systems and i'll let you know:)
rexxarspain
10-30-2008, 06:28 AM
Change :
Rar.Extract() ; now Returns "OK" if file(s) extracted successfully and return nil if an error occured.
Hi, thanks for this usefull plugin, i´ve a suggestion:
I Think is better to convert this plugin in a silent plugin without the message box at the end of extraction.
I´ve a little program and i want to do it full unattended but when i extract a file the user have to press OK button to continue.
u can put the option to disable this box and the user can decide if he want to show it.
can u make it compatible with progress bar of "StatusDlg.Show"?? i think its a good idea.
Thanks for all and sorry for my english, i dont speak it very well.
AMSWaves
10-31-2008, 11:59 AM
Hi All
Hi, thanks for this usefull plugin
Thanks rexxarspain,
I Think is better to convert this plugin in a silent plugin without the message box at the end of extraction.
I´ve a little program and i want to do it full unattended but when i extract a file the user have to press OK button to continue.
u can put the option to disable this box and the user can decide if he want to show it.
Rar.Extract never show a dialog message just returned a "OK" string remove this red code and you can see Rar.Extract never show any dialog, if it show a dialog you find a bug :
ret = Rar.Extract("AutoPlay\\Docs\\AMSWaves_demo.rar", {"*.*"}, "C:\\test", true, true, "AMSWaves", RAR_OVERWRITE_NEVER);
if ret == "OK" then
Dialog.Message("Success", "File(s) successfully extracted")
else
Dialog.Message("Error", "Some error on extracted file(s) occured", 0, 48)
end
can u make it compatible with progress bar of "StatusDlg.Show"?? i think its a good idea.
:yes this is a good idea we must work on it but now we work on a new plugin and release it on a few day.
Samio
11-16-2008, 03:33 AM
Hi,Supported this plug-in (Rar) with windows vista????
nrgyzer
11-22-2008, 04:46 AM
Is it possible to add a function that creats rar-files - like Rar.Add or something?
AMSWaves
11-28-2008, 09:33 AM
Is it possible to add a function that creats rar-files - like Rar.Add or something?
Hi nrgyzer,
this job is possible but is not legal, if we do this rarlab company can arrest us.
Before we create this plugin contact with rar company for adding ".Add" function, but they said us : you can not add this func now.
nrgyzer
11-28-2008, 10:22 AM
Okay, but -> thanks for this good plugin :)
What about a Callback-function for extracting?
AMSWaves
11-28-2008, 10:40 AM
Yea this is possible, we work on it.:)
AMSWaves
12-03-2008, 07:12 PM
Hi All,
We released new version of Rar plugin (1.0.4.0).
we add Callback Function and close method for vista and fix some bugs on GetContent method
Added :
Rarr.Close() ; use this on vista requires.
Changed :
Rar.Extract(RarFile, Files, Destination, Recurse, UseInternalFolders, Password, Overwrite, CallbackFunction) ; now this function have Callback Function Support.
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Support (support@amswaves.com)
Best Regards,
AMSWaves.
sided
12-04-2008, 05:00 AM
Thanx for news release :yes
Solmos
12-04-2008, 04:16 PM
is possible add RAR.Create?
thx
nrgyzer
12-05-2008, 05:26 AM
Hi All,
We released new version of Rar plugin (1.0.4.0).
we add Callback Function and close method for vista and fix some bugs on GetContent method
Added :
Rarr.Close() ; use this on vista requires.
Changed :
Rar.Extract(RarFile, Files, Destination, Recurse, UseInternalFolders, Password, Overwrite, CallbackFunction) ; now this function have Callback Function Support.
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Support (support@amswaves.com)
Best Regards,
AMSWaves.
Great, thanks :yes
is possible add RAR.Create?
thx
No... I asked for RAR.Add, but this is not legal :(.
Samio
12-06-2008, 07:06 AM
Thanks AMSWaves.
AMSWaves
12-09-2008, 06:21 PM
We glad to help. :)
any suggest can help us to create plugin and can help AMS to improve, so please suggest.
nrgyzer
12-16-2008, 10:40 AM
I currently missing a little function to get the type of the rar file (password proteced or without password).
Samio
12-19-2008, 07:03 AM
We glad to help. :)
any suggest can help us to create plugin and can help AMS to improve, so please suggest.
Hi AMSWaves.I Test New Version Today.
I Find a problem to the this version.
This Problem isn't to the old version.
when MyRar File isn't exist Rar.Extract Must Be Pass this action and don't run any action.but this show WindowsSend Error.
I Can use File.DoesExist But I think it is a problem.
Thanks.
AMSWaves
12-24-2008, 10:42 AM
Hi AMSWaves.I Test New Version Today.
I Find a problem to the this version.
This Problem isn't to the old version.
when MyRar File isn't exist Rar.Extract Must Be Pass this action and don't run any action.but this show WindowsSend Error.
I Can use File.DoesExist But I think it is a problem.
Thanks.
Hi Samio yea this is a problem in 1 line of 3892 line source code of this plugin, thanks for report, fixed.
nrgyzer
12-27-2008, 03:46 PM
Is it possible to add a function to check the archives? -> like the check version of WinRAR
nrgyzer
12-28-2008, 04:40 AM
Sorry for double post :lol, but if I use the following code, it only extract one file:
Rar.Extract(extract_file[1], {"*.*"}, extract_file2folder, true, true, "", RAR_OVERWRITE_NEVER, "extract_rar");
Whitout the callback-> all file will be extracted:
Rar.Extract(extract_file[1], {"*.*"}, extract_file2folder, true, true, "", RAR_OVERWRITE_NEVER, "");
I looked for the source of my callback-function, but I can't find any mistake:
function extract_rar(Name, Percent, Size)
Progress.SetText("Progress1", Percent.."%");
Label.SetText("Label7", String.SplitPath(Name).Filename..String.SplitPath( Name).Extension);
end
I think there is a problem with the callback-function :huh
Imagine Programming
12-28-2008, 08:59 AM
In the callback function, return bool true every time... maybe that works:p
function extract_rar(Name, Percent, Size)
Progress.SetText("Progress1", Percent.."%");
Label.SetText("Label7", String.SplitPath(Name).Filename..String.SplitPath( Name).Extension);
return true;
end
nrgyzer
12-28-2008, 01:41 PM
Okay, this will extract all files but if I extract bigger files, the application is not responding until the extraction is finished.
Samio
12-31-2008, 07:28 AM
Hi Samio yea this is a problem in 1 line of 3892 line source code of this plugin, thanks for report, fixed.
Hi AMSWaves.:wow
I Found A Problem.
I have a Rar File With 3 Files.
1) setup.exe with 100 MB
2) Help.html With 250 KB
3) Serial.txt With 2 KB
I Want To Extract Only Serial.txt.
It Is Ectract Successfully but Extract Time Is Equales with Extract All Files.
Why Can Resolve This Problem.
AMSWaves
12-31-2008, 10:26 AM
Hi AMSWaves.:wow
I Found A Problem.
I have a Rar File With 3 Files.
1) setup.exe with 100 MB
2) Help.html With 250 KB
3) Serial.txt With 2 KB
I Want To Extract Only Serial.txt.
It Is Ectract Successfully but Extract Time Is Equales with Extract All Files.
Why Can Resolve This Problem.
Hi Samio,
oh we never find this thanks for report this problem.
We fix it.
paul186
01-02-2009, 04:44 AM
Does it support unrar multiple files? like .part1, .part2...? if not it would be fine
anyway thanks AMSWaves! Your plugin is pretty cool! and usefull!!!!! ;)
RizlaUK
01-03-2009, 07:25 AM
altho i havent tested, i would assume that when accessing multi part archives you only need to unpack "part1.rar", and winrar will automaticly find the other files as long as thay are all in the same dir
AMSWaves
01-04-2009, 08:58 AM
Does it support unrar multiple files? like .part1, .part2...? if not it would be fine
anyway thanks AMSWaves! Your plugin is pretty cool! and usefull!!!!! ;)
Hi paul186,
we dont know this work or not and we cant test it because for now we dont have computer so check it on future and if this plugin dont support splited rar file we add this on plugin.
Thanks
Samio
02-18-2009, 08:43 AM
Hi AMSWaves.I Test New Version Today.
I Find a problem to the this version.
This Problem isn't to the old version.
when MyRar File isn't exist Rar.Extract Must Be Pass this action and don't run any action.but this show WindowsSend Error.
I Can use File.DoesExist But I think it is a problem.
Thanks.
Hi Samio yea this is a problem in 1 line of 3892 line source code of this plugin, thanks for report, fixed.
Hi AMSWaves.:wow
I Found A Problem.
I have a Rar File With 3 Files.
1) setup.exe with 100 MB
2) Help.html With 250 KB
3) Serial.txt With 2 KB
I Want To Extract Only Serial.txt.
It Is Ectract Successfully but Extract Time Is Equales with Extract All Files.
Why Can Resolve This Problem.
Hi Samio,
oh we never find this thanks for report this problem.
We fix it.
Hi AMSWaves.
I Am Anticipant.
AMSWaves
03-19-2009, 06:30 PM
Hi All.
Released new version (1.0.5.0)
This Version have new function and some fixes.
Add Rar.GetFileInfo() that return info of a file in rar file.
Fixed Some Minor Bugs(thanks Samio).
In this New attached Example you can see Rar.GetFileInfo() how work.
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Email (support@amswaves.com)
Samio
03-20-2009, 03:22 PM
Hi Friends.
Very Thanks Dear AMSWaves.
I Test it.:p
Samio
03-25-2009, 12:45 PM
Hi Dear AMSWaves.
Rar Plug-in isn't Support from unicode for Extraction path.
for test this problem insert a character similar µ to the Extraction path.
program replace this character with _.:)
AMSWaves
03-31-2009, 04:34 AM
Hi Dear AMSWaves.
Rar Plug-in isn't Support from unicode for Extraction path.
for test this problem insert a character similar µ to the Extraction path.
program replace this character with _.:)
Hi Samio,
thanks for find our problem please create an example if possible.
thanks.
Samio
03-31-2009, 11:27 PM
Hi AMSWaves.
I attach an example.
7958
AMSWaves
04-03-2009, 06:43 AM
Hi All.
Released new version (1.0.6.0)
This Version have some Improvments.
Now all Functions support unicode (Thanks Samio).
some important improvment on Rar.Extract() for speed.
Very very thanks to Samio for Improve this plugin with his Suggests.
Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Help (http://www.amswaves.com/helps/AMSWRar_Help.htm)
Email (support@amswaves.com)
Samio
04-03-2009, 01:37 PM
Hi AMSWaves.
Thank you for repair this problem.:yes
wasim21k
04-12-2009, 03:23 PM
can not download this pluging,
about other timer plugin it gives error
Error: Plugin "AMSWTimer\AMSWTimer.lmd" is not licensed for re-distribution
:huh
error if i click on Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Not Found
The requested URL /download/AMSWRar.exe was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
ShadowUK
04-12-2009, 03:53 PM
AMSWaves changed to a new host recently.
Desrat
04-12-2009, 08:19 PM
can this extract 7z files like winrar can?
AMSWaves
04-13-2009, 10:59 AM
Hi,
can not download this pluging,
about other timer plugin it gives error
Error: Plugin "AMSWTimer\AMSWTimer.lmd" is not licensed for re-distribution
Please Download it again and install it.
:huh
error if i click on Download (http://www.amswaves.com/index.php?option=com_content&view=article&id=46&Itemid=55)
Not Found
The requested URL /download/AMSWRar.exe was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Yea for a short time AMSWaves Site go down but now it is up (Thanks ShadowUK) go and enjoy.
AMSWaves
04-13-2009, 11:09 AM
can this extract 7z files like winrar can?
Hi Desrat,
With this plugin this is not possible but in the next olugin this is possible, AMSWaves want create a plugin for all regular compressed archive.
AMS7.5
04-14-2009, 06:09 AM
hi
what's problem ?
Pic :
http://www.gigaimage.com/images/lcl897836pd7qtj6vwtu.png
Plz help me :huh
thx
AMSWaves
04-14-2009, 06:32 AM
hi
what's problem ?
Pic :
http://www.gigaimage.com/images/lcl897836pd7qtj6vwtu.png
Plz help me :huh
thx
Hi AMS7.5,
what is your problem exactly ? i dont see any Picture
AMS7.5
04-14-2009, 06:44 AM
hi
my previous problem solved !
I have test.part1 , test.part2 , test.part3
how i can extract this file ?
AMSWaves
04-14-2009, 07:13 AM
hi
my previous problem solved !
I have test.part1 , test.part2 , test.part3
how i can extract this file ?
sorry this is not possible for now, this ability on progress.
AMS7.5
04-14-2009, 09:38 AM
ok,
next question? ;)
how can i Understand that one rar file is encrypted ?
sorry for my english :cool
salim594
05-08-2009, 11:38 AM
thanks ,:yes
salim594
05-09-2009, 05:37 AM
this will help me a lot;)
Samio
05-10-2009, 03:36 AM
Hi AMSWaves and other Friends.
Rar Plug-ins have a problem. return value isn't correct always and when failed extract file is return "OK" too.
for example make a rar file with a password example AMSWaves then extract this file with another password example samio.
files don't extract but return value is "OK".:p
AMSWaves
05-12-2009, 10:26 AM
ok,
next question? ;)
how can i Understand that one rar file is encrypted ?
sorry for my english :cool
Hi AMS7.5,
no this is not possible.
AMSWaves
05-12-2009, 10:28 AM
Hi AMSWaves and other Friends.
Rar Plug-ins have a problem. return value isn't correct always and when failed extract file is return "OK" too.
for example make a rar file with a password example AMSWaves then extract this file with another password example samio.
files don't extract but return value is "OK".:p
Hi Samio,
thanks for help you can create a example for this problem ?
Samio
05-12-2009, 01:15 PM
Hi AMSWaves.:)
8082
AMSWaves
05-23-2009, 12:36 PM
Hi AMSWaves and other Friends.
Rar Plug-ins have a problem. return value isn't correct always and when failed extract file is return "OK" too.
for example make a rar file with a password example AMSWaves then extract this file with another password example samio.
files don't extract but return value is "OK".:p
Hi Samio,
Again you are true in finding bug:)
I Fixed it download it again
NOTE : Now Rar.Extract return true or false instead of OK or nil See Help File
I have some problem in my site so upload my plugins in Indigorose forums, because people come and go but indigorose still alive for ever.
Test It And Report Bugs, Thanks.
AMSWaves.
Samio
05-24-2009, 09:54 PM
Hi.
Thanks Dear AMSWaves.:)
Benjamin
09-16-2009, 07:53 AM
Have a problem with plugin in Vista and Win2003, see picture. Text on the picture: "Cannot load plugin ...". Whats this? :huh
I'm using this in SUF 8.
P.S. Plugin support dualcore proccessors? When i extract archive more that 1 gigabayte its freeze installation for some time.
Sorry for English :D
rexzooly
09-16-2009, 09:02 AM
winrar its self lags from time to time, and i am on dual core an never had a problem with it, i not sure what the problem would be as never usered a plugin
on SU8 i tested it sometime back and its a great app but i like AMS so i build my
installers in there also.:yes
AMSWaves
09-16-2009, 10:26 AM
Have a problem with plugin in Vista and Win2003, see picture. Text on the picture: "Cannot load plugin ...". Whats this? :huh
I'm using this in SUF 8.
P.S. Plugin support dualcore proccessors? When i extract archive more that 1 gigabayte its freeze installation for some time.
Sorry for English :D
this plugin worked with indigorose software specially AMS & SUF and yea this is worked with dualcore proccessors, i cant read that dialog in the attachment picture (i think its russian lang) please somebody translate it.
and for freezing software yea this is true and if your size of rar is bigger your software freezing is come longer, i must work on it
Benjamin
09-16-2009, 11:20 AM
I will translate, it say: "Failed to load plugin"
AMSWaves
09-17-2009, 10:15 AM
I will translate, it say: "Failed to load plugin"
Please post me an example.
AMSWaves
09-23-2009, 10:55 AM
Fixed crashes on close on Win Vista & 7
Removed Rar.Close().
Now Good Worked on Vista & 7
Fix some minor bugs that cause program crashes
Fixed Bug on Rar.GetFileInfo that sometime return nil
Obtimized code in Rar.Extract
Fixed freeze and not responding program while extracting, now extracting method works like charm (see it and enjoy)
Some change and improve in Callback Function
Now support Splited rar files (part1.rar, part2.rar, ...)
Hi All,
AMSWaves Released new version of rar plugin
Note1:
The callback function always must return a boolean value (true or false) indicating whether the extraction of the Rar file should continue
when Message (First Parameter of your callback) is 'process', true if Continue with the Rar file extraction and false if Stop the Rar file extraction as soon as possible.
Note2:
if Message is 'volume' your callback function must return path to next volume if you return "" (nothing) plugin close extracting your files.
Note3:
if Message is 'password' your callback function must return your rar file password if you return "" (nothing) plugin close extracting your files.
Best Regards,
AMSWaves.
rexzooly
09-23-2009, 01:21 PM
Thanks for the update love it :yes
Benjamin
09-23-2009, 02:23 PM
Thank you! awesome update!:yes
Benjamin
09-24-2009, 02:04 AM
So, what about freearc? ;):p
AMSWaves
09-24-2009, 05:46 AM
Thanks all for your attendance.
Some another Note that you must know about this new version
Note4:
With this new version while plugin do it's job to extract files from your rar file your program dont freze or dont respond to windows so you can do anything
while extraction but this is not mean until extraction is not finished you can close your program or start another extraction if you want close your program while extraction you must return false in your
callback function to kill process of extarction then you can close your program or start another extarction.
Note5:
In this new version of AMSWRar plugin while one extraction is runnig you cant run another extraction this is important that on extarction
is finished then you start another, if you run two extraction Together your program crashes!, So Beaware.
So with this new version i think all body can create a winrar program :lol:lol
AMSWaves
09-24-2009, 05:54 AM
So, what about freearc? ;):p
it's in the progress.
Benjamin
09-24-2009, 06:45 AM
Have a bad news for me. Sometimes(on win xp sp3 x86) when i try extract files program crash and not responding. On the win xp sp2 x64 it happen always :(
//On Preload
Rar.Extract(_TempLaunchFolder .. "\\kolobok.tmp", {"*.*"}, _TempLaunchFolder .. "\\kolobok", true, false, "12345", RAR_OVERWRITE_NEVER, "");
On previous version extract work normally.
P.S. Rar.Close(); really removed? I still see it in actions.
AMSWaves
09-24-2009, 10:48 AM
Have a bad news for me. Sometimes(on win xp sp3 x86) when i try extract files program crash and not responding. On the win xp sp2 x64 it happen always :(
On previous version extract work normally.
please test it with this callback and see this work or not and report
Callback :
function callback(a, b, c, d)
return true
end
P.S. Rar.Close(); really removed? I still see it in actions.
oh yea it removed but i forget remove it from XML Actions:o
Samio
09-24-2009, 12:15 PM
Thanks Dear AMSWaves.:yes
Benjamin
09-24-2009, 12:18 PM
On the XP x86 it work normally(At least any crash when i tried it). But always program not responding on x64.:o
Rar.Extract(_TempLaunchFolder .. "\\kolobok.tmp", {"*.*"}, _TempLaunchFolder .. "\\kolobok", true, false, "zalupa", RAR_OVERWRITE_NEVER, "callback");
function callback(a, b, c, d)
return true
end
AMSWaves
09-24-2009, 01:06 PM
On the XP x86 it work normally(At least any crash when i tried it). But always program not responding on x64.:o
please test old plugin in your windows 64 and say me it worked or not, i dont know maybe this version have some problem with X64.
Benjamin
09-24-2009, 02:04 PM
Yes, it worked.
please test old plugin in your windows 64 and say me it worked or not
P.S. in new version: Interestingly that files are extracted from archive and are in destination folder.
AMSWaves
09-24-2009, 07:11 PM
Yes, it worked.
P.S. in new version: Interestingly that files are extracted from archive and are in destination folder.
so you want say plugin good worked on X64 but while extracting program not responded ?
AMS7.5
11-01-2009, 02:30 AM
hi
first sorry for my english
waths problem ?
function test(Msg, Name, Percent, Size)
if Msg == "password" then
Folder.Rename(fol[x], path0.."\\$ "..name);
end
end
i want rename one folder if exm.rar is password protected !
but this script not work !
but if
function test(Msg, Name, Percent, Size)
if Msg == "password" then
Folder.Rename(fol[x], path0.."\\$ "..name);
end
end
Folder.Rename(fol[x], path0.."\\$ "..name);
my folder will rename !
how can i rename one folder if exm.rar is password protected ?
kauster
11-07-2009, 12:47 AM
Hi All, first of all first pardon for my Englishman, I have a doubt with lso progresses of the amsrar, yoquiero use the dialogstatus not the object plugin, but never using the value percent it finishes the entire progress, this is the code that I have now:
function rar_Extract (Msg, Name, Percent, Size)
-- Progreso de extraccion de archivos
if Msg == "process" then
StatusDlg.Show(MB_ICONNONE, false);
StatusDlg.SetMessage("Extrayendo...");
StatusDlg.SetMeterRange(0, 100);
StatusDlg.SetMeterPos(Percent);
StatusDlg.SetStatusText(String.SplitPath(Name).Fil ename..String.SplitPath(Name).Extension.." : "..Math.Floor(Size/1024).." KB");
return true;
Some suggestion?
Benjamin
11-07-2009, 04:20 AM
StatusDlg.SetMeterRange(0, 100);
I think this line is not needed in callback function.
kauster
11-07-2009, 09:53 AM
StatusDlg.SetMeterRange(0, 100);
I think this line is not needed in callback function.
Thank you, already eliminate it but I continue with the same problem the progress it is closed before be completing
rexzooly
11-07-2009, 10:07 AM
From what i can see your missing alot of your function this part seems on so it could be something else that is making the function brake.
kauster
11-07-2009, 10:37 AM
From what i can see your missing alot of your function this part seems on so it could be something else that is making the function brake.
Full code:
function rar_Extract (Msg, Name, Percent, Size)
if Msg == "process" then
StatusDlg.Show(MB_ICONNONE, false);
StatusDlg.SetMessage("Extrayendo...");
StatusDlg.SetMeterPos(Percent);
StatusDlg.SetStatusText(String.SplitPath(Name).Fil ename..String.SplitPath(Name).Extension.." : "..Math.Floor(Size/1024).." KB");
return true;
elseif Msg == "volume" then
result = Dialog.FileBrowse(true, "Locate Rar Part File", "'", "Rar Part Files(*part.rar)|*.part*.rar|", "", "", false, false)
if result[1] == "CANCEL" then
result[1] = ""
end
return result[1]
elseif Msg == "password" then
return Dialog.PasswordInput("Contraseña", "El archivo esta protegigo, introduce la contraseña", MB_ICONQUESTION);
end
end
if rar_File == nil then
Dialog.Message("Error", "No has seleccionado un archivo .rar", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
sFolder = Dialog.FolderBrowse("Selecciona directorio donde extraer archivos", _DesktopFolder);
if (sFolder ~= "CANCEL") then
correcto = Rar.Extract(rar_File[1], {"*.*"}, sFolder, true, true, "", RAR_OVERWRITE_ALWAYS, "rar_Extract");
if correcto == true then
Dialog.Message("Extracción de archivos", "La Extracción se realizó correctamente.");
else
Dialog.Message("Extracción de archivos", "Ocurrió un problema en el proceso de copia.");
end
end
StatusDlg.SetMeterPos(0);
StatusDlg.Hide();
end
rexzooly
11-07-2009, 12:49 PM
Does it still unrar the file?
rexzooly
11-07-2009, 01:13 PM
this funtion seems little backwords to me.
I looked at it and i can see what your trying to do one funtion that will do it all call back and unrar and also if the details not there it will ask the user but its backwords.
can you show me a sinpit where you use the funtion so i can understand it little more.
kauster
11-07-2009, 05:02 PM
this funtion seems little backwords to me.
I looked at it and i can see what your trying to do one funtion that will do it all call back and unrar and also if the details not there it will ask the user but its backwords.
can you show me a sinpit where you use the funtion so i can understand it little more.
Sorry if I do not quite understand your answer, my English is low, do not understand what you mean sinpit but I guess you mean an example, if it is not so dimelo, I leave the APZ is what I'm doing haver if solved between all of the statusdialog, greetings
rexzooly
11-07-2009, 10:16 PM
Ok your not even calling your function move th fucntion to the globe and then try calling the function with the details requested from the function i am 2 tired to fix or test anymore now i am half dead but look at that your coding on the extract is way out you call functions have the hole function in the button.
kauster
11-08-2009, 07:50 AM
Ok your not even calling your function move th fucntion to the globe and then try calling the function with the details requested from the function i am 2 tired to fix or test anymore now i am half dead but look at that your coding on the extract is way out you call functions have the hole function in the button.
Thanks, am already in global function and call function makes Rar.Extract (rar_File [1], {"*.*"}, Sfold, true, true, "", RAR_OVERWRITE_ALWAYS, "rar_Extract");
but this did not solve the problem, but any suggestions?
rexzooly
11-08-2009, 07:58 AM
Thanks, am already in global function and call function makes Rar.Extract (rar_File [1], {"*.*"}, Sfold, true, true, "", RAR_OVERWRITE_ALWAYS, "rar_Extract");
but this did not solve the problem, but any suggestions?
is that code on your button? can i ask it the rest of the function working part from the call back?
kauster
11-08-2009, 09:01 AM
is that code on your button? can i ask it the rest of the function working part from the call back?
Ok
Code global functions:
-- Funcion para Callback function en rarExtract
function rar_Extract (Msg, Name, Percent, Size)
-- Progreso de extraccion de archivos
if Msg == "process" then
StatusDlg.Show(MB_ICONNONE, false);
StatusDlg.SetMessage("Extrayendo...");
StatusDlg.SetMeterPos(Percent);
StatusDlg.SetStatusText(String.SplitPath(Name).Fil ename..String.SplitPath(Name).Extension.." : "..Math.Floor(Size/1024).." KB");
return true;
-- Si el rar a extraer se compone de mas volumenes..
elseif Msg == "volume" then
result = Dialog.FileBrowse(true, "Locate Rar Part File", "'", "Rar Part Files(*part.rar)|*.part*.rar|", "", "", false, false)
if result[1] == "CANCEL" then
result[1] = ""
end
return result[1]
-- Si el archivo a extraer dispone de password..insertamos pass en el dialog
elseif Msg == "password" then
return Dialog.PasswordInput("Contraseña", "El archivo esta protegigo, introduce la contraseña", MB_ICONQUESTION);
end
end
Code buton to load rar:
-- Buscamos archivo rar, delimitamos browser para solo .rar
rar_File = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.rar)|*.rar|", "", "dat", false, false);
-- Si no se cancela el buscador
if (rar_File[1] ~= "CANCEL") then
-- Recogemos la información del rar seleccionado
info_rar = Rar.GetInfo(rar_File[1], "");
-- error devuleve nil en ese caso ..mensaje
if info_rar == nil then
Dialog.Message("Error !", "Erorr al copilar la información.")
-- Si todo va bien
else
info_rar.TotalSize = tamano(info_rar.TotalSize)
info_rar.PackedSize = tamano(info_rar.PackedSize)
-- Si la info del rar nos dice que no tiene comentarios el archivo..
if info_rar.Comment == nil then
-- Impresion de la tabla de informacion del rar ( sin comentarios)
Paragraph.SetText("Paragraph1","Versión :"..info_rar.UnpackVer.."\r\nHost OS : "..
info_rar.HostOS.."\r\nTotal Archivos : "..
info_rar.TotalFiles.."\r\nTamaño total : "..
info_rar.TotalSize.."\r\nTamaño comprimido : "..
info_rar.PackedSize.."\r\nRatio : "..
info_rar.Ratio.." %" );
Paragraph.SetText("Paragraph2"," El archivo no tiene comentarios");
else
-- Si tiene comentarios , inpresion de la tabla de informacion del rar
Paragraph.SetText("Paragraph1","Versión :"..info_rar.UnpackVer.."\r\nHost OS : "..
info_rar.HostOS.."\r\nTotal Archivos : "..
info_rar.TotalFiles.."\r\nTamaño total : "..
info_rar.TotalSize.."\r\nTamaño comprimido : "..
info_rar.PackedSize.."\r\nRatio : "..
info_rar.Ratio.." %");
Paragraph.SetText("Paragraph2","Comentarios : "..info_rar.Comment);
end
end
end
-- Funcion para pasar el listado del rar ( delimitado por "|" ) en una tabla
function DelimitedStringToTable(DelimitedString, Delimiter)
tbReturn = {};
local strWorking;
local nPos = nil;
local strData;
local nTableIndex = 1;
local nDelimiterLength = String.Length(Delimiter);
if(nDelimiterLength < 1)then
tbReturn[nTableIndex] = DelimitedString;
return tbReturn;
end
strWorking = DelimitedString;
nPos = String.Find(strWorking,Delimiter);
while(nPos ~= -1)do
strData = String.Left(strWorking,nPos-1);
tbReturn[nTableIndex] = strData;
nTableIndex = nTableIndex + 1;
local nLength = String.Length(strWorking);
strWorking = String.Right(strWorking,nLength - (nPos + (nDelimiterLength-1)));
nPos = String.Find(strWorking,Delimiter);
end
if(strWorking ~= "")then
tbReturn[nTableIndex] = strWorking;
end
return tbReturn;
end
-- Lllamamos a los archivos contenidos en el rar
rar_contents = Rar.GetContents(rar_File[1], "AMSWaves", false);
-- Si el rar esta vacio o hay algun error mensaje
if rar_contents == nil then
Dialog.Message("Error !", "Error al copilar el contenido del rar")
else
-- Borramos items anteriores en el listbox
ListBox.DeleteItem("ListBox1", LB_ALLITEMS);
-- Conevertimos en tabla la lista rar_contens
contents = DelimitedStringToTable(rar_contents, "|")
for a,b in contents do
-- Imprimimos lista en el listbox
ListBox.AddItem("ListBox1",b , "");
end
end
Code buton to extract:
-- Si no seleccionamos ningun rar en "Buscar archivo rar" mesaje de error
if rar_File == nil then
Dialog.Message("Error", "No has seleccionado un archivo .rar", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
-- Si todo esta bien , llamamos al dialogo para ubicación de extracción
sFolder = Dialog.FolderBrowse("Selecciona directorio donde extraer archivos", _DesktopFolder);
-- Si no cancelamos el dialogo..seguimos con la extraccion , en caso contario no hay acción
if (sFolder ~= "CANCEL") then
-- Extraemos archivos del rar_File( rar buscado anteriormente) en sFolder( ubicacion)
correcto = Rar.Extract(rar_File[1], {"*.*"}, sFolder, true, true, "", RAR_OVERWRITE_ALWAYS, "rar_Extract");
-- Si la extraccion es correcta primer dialogo, si hay errores segundo
if correcto == true then
Dialog.Message("Extracción de archivos", "La Extracción se realizó correctamente.");
else
Dialog.Message("Extracción de archivos", "Ocurrió un problema en el proceso de copia.");
end
end
StatusDlg.SetMeterPos(0);
StatusDlg.Hide();
end
Apz project:
rexzooly
11-08-2009, 09:05 AM
Not what i asked for but ok i said does the rest of the function work part from the call back does it extract the rar file?
kauster
11-08-2009, 01:59 PM
Not what i asked for but ok i said does the rest of the function work part from the call back does it extract the rar file?
yes ,if it makes the callback function to extract the file
rexzooly
11-08-2009, 02:02 PM
yes ,if it makes the callback function to extract the file
No i said does the fucntion work apart from that? ok i going to take a back step as i don't have this plugin and i am having time to make a new one my self.
sorry.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.