View Single Post
Old 08 August 2020, 15:12   #5
Korodny
Zone Friend
 
Join Date: Sep 2001
Location: Germany
Posts: 812
You should not create separate UnZip, UnLhA and UnLZX buttons - create one "Extract" button instead, which extracts all sorts of archives:

While editing the button, don't make it invoke "AmigaDOS: unlzx..." or anything like that. Instead make it invoke "Command: User1".

Then you make sure you have a proper filetype for each archive format you want to be able to extract. Edit each filetype, select "User1" in the "Events..." area, then configure this event to use the actual AmigaDOS command to extract this particular archive.

Now you have an "Extract" button that works with any archive formats you have configured.

You can use the same approach to have an "Edit" button, which loads text files into a text editor, ILBM files into DPaint and Mods into Protracker. That's the beauty of the UserX command in DOpus.
Korodny is offline  
 
Page generated in 0.10664 seconds with 11 queries