Short: Workbench/CLI transparent ReadArgs() Author: Thomas Aglassinger Uploader: Thomas Aglassinger Version: 1.6 Type: dev/misc Kurz: Workbench/CLI unabhängige ReadArgs() TITLE SmartReadArgs VERSION 1.6 AUTHOR Thomas Aglassinger Based on ExtReadArgs by Stefan Ruppert DESCRIPTION SmartReadArgs is a Workbench/CLI transparent interface to ReadArgs(). In case of a Workbench start, it analyzes the WBStartup message and possible tooltypes. These are converted to a text string that can be passed to ReadArgs() like before. If the application was stared from CLI, it simply calls ReadArgs() without the conversion step. FEATURES - Accepts multi-selected files from Workbench - Internal handles WINDOW tooltype to open CLI in case there is any output necessary if started from Workbench - Full source code included NEW FEATURES (to ExtReadArgs) - Fixed a couple of minor bugs - Ignores tooltypes not being part of the template given (useful for commodities etc.) - Supports NewIcons also on systems without NewIcons running - Included Makefile for GCC USAGE Read the autodocs to learn how to use it. Take a look at the example "test.c" and play with it. The full source code is included. DISCLAIMER There is no warranty for this software package. Although the author has tried to prevent errors, he can't guarantee that the software package described in this document is 100% reliable. You are therefore using this material at your own risk. The author cannot be made responsible for any damage which is caused by using this software package. DISTRIBUTABILITY Permission is granted to freely distribute the material (also only parts of it) as long this ReadMe is included and all the copyright notes are left unaltered except for a description of your changes. COPYRIGHT SmartReadArgs (C) Copyright 1998 by Thomas Aglassinger ExtReadArgs (C) Copyright 1994,1995 by Stefan Ruppert SEE ALSO dev/misc/extrdargs_v1.5.lha dev/c/nrdargs.lha dev/c/wb2argv.lha ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 628 278 55.7% 03-Sep-98 09:08:06 SmartReadArgs.info 428 258 39.7% 03-Sep-98 12:23:36 +debug.h 417 190 54.4% 02-Sep-98 23:52:50 +debug.h.info 1168 632 45.8% 03-Sep-98 12:17:34 +Makefile 464 225 51.5% 02-Sep-98 23:52:48 +Makefile.info 1909 1025 46.3% 07-Sep-98 15:51:26 +ReadMe 468 229 51.0% 02-Sep-98 23:52:48 +ReadMe.info 528 124 76.5% 03-Sep-98 00:36:52 +robodoc.defaults 101 85 15.8% 02-Sep-98 08:55:34 +SCOPTIONS 1196 556 53.5% 03-Sep-98 09:05:26 +SMakefile 849 483 43.1% 03-Sep-98 09:05:34 +SMakefile.info 23501 7493 68.1% 07-Sep-98 15:51:28 +SmartReadArgs.c 417 215 48.4% 02-Sep-98 23:52:50 +SmartReadArgs.c.info 9813 4136 57.8% 07-Sep-98 15:51:42 +SmartReadArgs.doc 468 230 50.8% 02-Sep-98 23:52:48 +SmartReadArgs.doc.info 11139 4407 60.4% 07-Sep-98 15:49:14 +SmartReadArgs.guide 468 230 50.8% 02-Sep-98 23:52:48 +SmartReadArgs.guide.info 2863 1164 59.3% 07-Sep-98 15:51:28 +SmartReadArgs.h 417 191 54.1% 02-Sep-98 23:52:50 +SmartReadArgs.h.info 2512 1680 33.1% 07-Sep-98 15:51:34 +SmartReadArgs.o 10820 6813 37.0% 07-Sep-98 15:51:40 +test 3695 1519 58.8% 04-Sep-98 01:54:08 +test.c 417 220 47.2% 07-Sep-98 15:50:56 +test.c.info 826 381 53.8% 07-Sep-98 15:50:36 +test.info 876 422 51.8% 07-Sep-98 15:51:20 +verbose.info -------- ------- ----- --------- -------- 76388 33186 56.5% 07-Sep-98 22:14:52 25 files