Welcome, Guest. Please login or register.

Author Topic: How to make iconx script file minimize  (Read 5954 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline paul1981

Re: How to make iconx script file minimize
« on: February 14, 2017, 11:00:15 AM »
Quote from: Brian;822106
I was hoping there was a way to start a script from workbench and get it in a fullscreen shell without relying on anything other than whats in ROM but I guess there isn't. :(

There is, it's called the Startup-Sequence. If you wanted to, you could still load Workbench and keep the AmigaDOS shell open by omitting the EndCLI after LoadWB. That is, I'm assuming your floppy is bootable?
« Last Edit: February 14, 2017, 11:03:25 AM by paul1981 »
 

Offline paul1981

Re: How to make iconx script file minimize
« Reply #1 on: February 15, 2017, 10:13:04 AM »
Quote from: Brian;822199
Yes, my bad. Execute wasn't needed by newshell line but by the way I start the script from the workbench icon.


May I ask what the benefit is supposed to be by loading your install script via a Workbench icon rather than via the startup-sequence? If the user only has a broken Workbench disk or none at all, why would they not want to boot from your install disk?
 

Offline paul1981

Re: How to make iconx script file minimize
« Reply #2 on: February 15, 2017, 06:58:49 PM »
Quote from: Brian;822207
When I try it, script given the S protection bit and a tool icon that have CLI in it's tooltypes, I clearly get "Execute unknown command" before any line of code in the script has been started.

Since I don't know how, could you please tell me how you would start a script by just double clicking an icon in workbench without having to type anything manually and only using KS3.0 ROM commands (no on disk commands like IconX, Execute etc)?


I think Thomas meant you to use

newshell con:0/0/9999/9999/Fullscreen_Shell/CLOSE/WAIT from script2

as the default tool in a project icon. I haven't tried it but it looks like it would work.

EDIT: No, don't try that as it doesn't work under 3.1 (like he said it wouldn't). If you get rid of the "newshell" part and make the default tool "con:0/0/...." then it opens a window but I don't think it's possible to make it execute commands. Thomas may know a trick or two though...

EDIT2: If you look at the Workbench:System/Shell you'll see that it uses the default tool 'CLI'... CLI is 1180 bytes (less bytes than IconX), so this is a possibility. Make the project icon, make its default tool 'CLI' and then add some tooltypes. CLI must be somewhere in the path (sys or c etc)

WINDOW=CON:0/0/500/100/title/CLOSE/WAIT
FROM=yourscript


Your icon needs to be just 1 pixel with no second image to save space.
« Last Edit: February 15, 2017, 08:07:22 PM by paul1981 »
 

Offline paul1981

Re: How to make iconx script file minimize
« Reply #3 on: February 15, 2017, 07:07:05 PM »
Quote from: Brian;822204
If it wasn't for HDToolbox everything could be setup from startup-sequence but since it isn't I want to load Workbench and have the options run from there to get a "unified" feel.

HDToolbox doesn't need Workbench. Delete the icon (.info) here too to save space.
« Last Edit: February 15, 2017, 08:11:27 PM by paul1981 »