home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d167
/
clicon.lha
/
CLIcon
/
CLIcon.doc
< prev
next >
Wrap
Text File
|
1988-11-22
|
3KB
|
52 lines
CLIcon
Icon executer for CLI programs
Copyright (C) by 1988 Bryan Ford
I wrote this program because, basically, I wasn't at all satisfied with
IconExec, which is the only other one I know of. First, IconExec requires
a separate copy each time it's used. Second, it gives very little control
over the window size, and doesn't give the option to halt the window after
the program has finished executing. So here is my version.
To use it, you should copy CLIcon to C: or another place on your
Workbench disk, so it is easily accessible by all its "clients". Then, all
you need to do is create icons for all of the CLI programs you want to run.
They must be PROJECT icons, not TOOL icons. If you don't have a project
icon handy, just load up an application (like the Notepad), save a project
of some kind, and just use its icon. You can edit the icon with IconEd.
To set up the icon so it will load with CLIcon, use the Workbench Info
command. Set the Default Tool field to C:CLIcon or wherever you put it.
The ToolTypes field can have several things. There is one required
ToolType: COMMAND. Set this to the command you wish to execute when this
icon is activated. It must contain the full path to the CLI program, even
if it is in the same directory as the icon, unless it's in the C directory.
(This is a bug I couldn't fix, and I don't have time to work on it.) For
example, to get a directory of RAM whenever you click the icon, set a
ToolType as "COMMAND=Dir RAM:".
You can set the optional WINDOW tooltype to the name to open for the
program's window. If you don't specify it, it defaults to
"CON:0/0/640/200/Application Window". If you wanted the RAW: device, with
a smaller window, you might use "RAW:10/10/100/50/Raw Window" or something
like that.
The last ToolType, FLAGS, can activate two features of CLIcon. If it
containts WAITBEFORE, then CLIcon will pause before it runs the program
with a message, and wait for you to press RETURN. If it contains
WAITAFTER, it will pause after the program is run, when it is about to
close the window. This gives you a chance to see the program's output
before you lose the window. If you want both, just use
"FLAGS=WAITBEFORE|WAITAFTER".
I haven't had time to test this program fully, so please report any
bugs to me. One problem I had while testing was when I was using Info to
change the icon's parameters. The ToolTypes started merging together. I
think (hope :) it's a problem with Info, not CLIcon, since CLIcon wasn't
even running when it happened.
I'm not going to require a donation, but if you use it a lot and think
it's worth something, just send whatever you think it's worth to the
address below. Comments and ideas welcome, flames sent to NIL:.
Enjoy!
Bryan Ford
Snail: 1790 East 1400 North
Logan, UT 84321
Phone: (801)753-1159
Bitnet: FATQW@USU