Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
19 user(s) are online (17 user(s) are browsing Forum)

Members: 1
Guests: 18

coolcat2012, more...

Browsing this Thread:   1 Anonymous Users



(1) 2 »


My first Lua script :)

Joined:
2005/2/6 20:57
From Poland
Group:
Member
Posts: 413
Offline
I made little GUI for KGB Archiver console version.
It works but is not perfect.

I have some problems to solve:
I don't know how to disable this field Output file when "DECOMPRESSION" mode is chosen...
The secongd issue is using file requester for multiple files. KGB works wit
single file or list of files to archive (no drawer) but file requester only
supports single file (AROS issue?)
If your files are in one drawer you could write them manually. Use spaces as
separators.
One more: Dont use files/paths with spaces (eg. Ram Disk:)!

I somebody has an idea please help me :) This is my first script, hope to learn something new...
Thx mazze for Lua and sample scripts (and AntiWordGUI script)

http://archives.aros-exec.org/share/u ... etool/kgbarchgui.i386.lha

Archive contains kgb tool...

Posted on: 2011/1/2 5:23
_________________

Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/8/17 16:00
From Germany
Group:
Member
Posts: 2068
Offline

Posted on: 2011/1/2 10:25
_________________
AROS - Make code, not war
Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2008/2/4 8:39
Group:
Member
Posts: 823
Offline
Nice one tomek.

Didn't know what KGB Archiver was so I looked it up, very impressive:
http://kgbarchiver.net/?page=home

Posted on: 2011/1/2 11:46
Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/2/6 20:57
From Poland
Group:
Member
Posts: 413
Offline
New version uploaded to AROS-Archives. It looks and works better.
Dont use highest compression level if You dont have enough memory...

http://archives.aros-exec.org/share/u ... /kgbarchgui.i386-aros.lha

Posted on: 2011/1/2 13:33
_________________

Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/2/6 20:57
From Poland
Group:
Member
Posts: 413
Offline
My second script :)
http://archives.aros-exec.org/downloa ... eue/lzopgui.i386-aros.lha

This is GUI for lzop archiver.

You find lzop here:
http://archives.aros-exec.org/share/u ... chive/lzop-1.02rc1.tar.gz

I'd like to ask how to add multifile selection. Which Zune class or gadget?

Posted on: 2011/1/4 9:59
_________________

Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2009/4/16 23:03
From Liancourt Saint Pierre - France
Group:
Member
Posts: 984
Offline
multiple file selection isn't working out of the box, you have to create your own class and this is not possible with Lua/Zulu, you have to do it in C.

That's one of the reason I've written ZuneARC in C and not Lua/Zulu.

Posted on: 2011/1/4 10:30
_________________
Yannick
http://www.dusabledanslherbe.eu/AROSPage
Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/2/6 20:57
From Poland
Group:
Member
Posts: 413
Offline
My third script is GUI for wget. I know we have got WgetGUI by Camelek. 3 years ago, having no knowledge about programming, I asked him about this app.
Today I tried to do script similar to WgetGUI with possibility of development if needed. I decided to add additional parameters field for better wget usage and help button to bring wget help.
Here is:
http://archives.aros-exec.org/share/n ... tp/zuluwget.i386-aros.lha
You need wget in C: or ZuluWget directory.
Wget is in Icaros/Network.

Please test my script :)

There was an error in WgetGUI (wget issue with directory name having space) when downloading to RAM Disk:

In ZuluWget I made small trick:
if dir_opt == RAM Disk: then dir_opt = RAM:

If you download to other location having space in name still will be problem. How to fix it profesionally?

Posted on: 2011/1/5 23:37
_________________

Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/8/17 16:00
From Germany
Group:
Member
Posts: 2068
Offline
Quote:

tomek wrote:

If you download to other location having space in name still will be problem. How to fix it profesionally?


Ensure that the path is enclosed in double quotes.

From the AROS Exec Download Tool:
local retval os.execute('c:run sys:utilities/multiview "' .. readme_target .. '"')


Here I have the double quotes only for readme_target because the path to MultiView doesn't have spaces.

Posted on: 2011/1/6 0:26
_________________
AROS - Make code, not war
Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2005/2/6 20:57
From Poland
Group:
Member
Posts: 413
Offline
I'm affraid this is not this problem. Not Lua side. If I use wget in shell it doesn't recognizes path "Ram Disk:". This problem is wget side. (wget doesnt recognizes spaces as part of path I think.

I fix problem with Ram Disk path (root directory only) by changing "Ram Disk:" to "Ram:" but if somebody wants to download to "Ram Disk:t" or "Ram Disk:something/something/" this way doesn't work.
I need to change "Ram Disk" to "Ram" in all possible combination
I think I need use function that cuts " Disk" from "Ram Disk:" but I'm still looking for this in Lua manual :)

Maybe I'm wrong but I think that global elimination of "space error" isn't possible .

Posted on: 2011/1/6 1:59
_________________

Transfer the post to other applications Transfer


Re: My first Lua script :)

Joined:
2007/4/16 6:26
From Norway
Group:
Member
Posts: 3467
Offline
Tomek: you are good with this :)

Wget GUI works real nice. thx

Posted on: 2011/1/6 2:17
_________________
www.aspireos.com
Transfer the post to other applications Transfer



(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
3662
2 nikolaos
nikolaos
3467
3 phoenixkonsole
phoenixkonsole
3033
4 magorium
magorium
2992
5 deadwood
deadwood
2342
6 ncafferkey
ncafferkey
2070
7 mazze
mazze
2068
8 clusteruk
clusteruk
2050
9 damocles
damocles
1769
10 Kalamatee
Kalamatee
1714
© 2004-2014 AROS Exec