|
84739 packages online
|
|
|
|
|
|
No screenshot available
|
Short: | RAChoice, a RequestChoice replacement |
Author: | flype44 (at) gmail (dot) com (Philippe CARPENTIER) |
Type: | util/cli |
Version: | 1.1 |
Architecture: | m68k-amigaos |
Date: | 2021-06-03 |
Requires: | AmigaOS 3.2+ (V47+) |
Download: | util/cli/RAChoice.lha - View contents | Readme: | util/cli/RAChoice.readme |
Downloads: | 515 |
|
RAChoice is a ReAction-based command with following features:
1. It is a ReAction replacement for the official Commodore
C:RequestChoice (V45.3+) Intuition command.
2. It can load BODY from a FILE, preserving the Line Feeds.
3. It can display predefined pictograms.
4. It can display datatype image from disk (including icons).
Source code is included (SAS/C).
-------------------------------------------------------------------------------
Changes in V1.1:
* First public version.
* Added PUBSCREEN support.
* Added REBOOT.r example script.
* Added rachoice.help (to use with '> help rachoice').
* Various code cleanups.
Changes in V1.0:
* First private version.
-------------------------------------------------------------------------------
Help:
NAME
RACHOICE - Allows AmigaDOS and ARexx scripts to use Reaction-based
message requesters.
FORMAT
RACHOICE <TITLE> <BODY> <GADGETS> [PUBSCREEN <public screen name>]
[SET] [IMAGE <image filename>] [FILE]
TEMPLATE
TITLE/A,BODY/A,GADGETS/A/M,PUBSCREEN/K,SET/K,IMAGE/K,FILE/S
PATH
C:RACHOICE
FUNCTION
The "TITLE" argument specifies the title of the requester.
The "BODY" argument specifies the text of the requester. Line feeds
can be embedded using *N.
The "GADGETS" argument specifies the text for the different gadgets.
The gadget labels are separated with spaces.
The "PUBSCREEN" argument allows the requester to open its window on
a public screen.
"SET" makes RACHOICE Copy the selected choice into a Shell variable.
The "FILE" argument indicates that the BODY argument is a filename.
The file will be loaded from disk, and displayed in the requester.
The "IMAGE" argument specifies the image of the requester, among :
"INFO" - Display a INFO image.
"WARNING" - Display a WARNING image.
"ERROR" - Display a ERROR image.
"QUESTION" - Display a QUESTION image.
"INSERTDISK" - Display a INSERTDISK image.
ELSE, load any supported datatype image from disk.
EXAMPLES
1> Set rcnum `RAChoice "New Title"
"This is my requester*nSelect a gadget" "OK" "Maybe" "Cancel"`
2> Echo $rcnum
The local shell variable rcnum contains 1, 2, or 0 (respectively)
after a gadget is selected. The script can use this value to
control its later execution.
1> RAChoice Info Line Ok SET="rcnum"
1> RAChoice "Info" "line1*nline2" "_ok|_cancel"
1> RAChoice "Warn" "line1*nline2" "_ok|_cancel" IMAGE="WARNING"
1> RAChoice "Warn" "line1*nline2" "_ok|_cancel" IMAGE="RAM:WARN.PNG"
1> RAChoice "Warn" "line1*nline2" "_ok|_cancel" IMAGE="RAM:WARN.info"
The IMAGE argument can use predefined pictograms, or any datatype
capable image from the disk.
1> C:Status >T:0
2> RAChoice Status T:0 Ok FILE
T:0 is here a temporary file where we store some information. The
FILE argument in the RAChoice command indicates to load that file.
SEE ALSO
REQUESTCHOICE
-------------------------------------------------------------------------------
|
Contents of util/cli/RAChoice.lha
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown] 2520 5904 42.7% -lh5- 74d5 May 31 21:44 RAChoice/C.info
[unknown] 6068 9408 64.5% -lh5- f6a6 May 21 23:17 RAChoice/C/RAChoice
[unknown] 2522 5904 42.7% -lh5- 921e May 31 21:45 RAChoice/Examples.info
[unknown] 3481 6448 54.0% -lh5- dcff May 31 21:42 RAChoice/Examples/Reboot.info
[unknown] 256 538 47.6% -lh5- 99cb May 21 02:42 RAChoice/Examples/Reboot/Reboot.r
[unknown] 4325 6632 65.2% -lh5- 5e52 May 21 02:45 RAChoice/Examples/Reboot/Reboot.r.info
[unknown] 31139 31228 99.7% -lh5- 5af4 May 21 00:10 RAChoice/Examples/Reboot/Reboot.r.PNG
[unknown] 1397 1674 83.5% -lh5- c478 May 21 02:45 RAChoice/Examples/Reboot/Reboot.r.PNG.info
[unknown] 3583 6418 55.8% -lh5- ee0d Jun 1 21:51 RAChoice/Examples/TestImages.info
[unknown] 516 1382 37.3% -lh5- 46fe Jun 1 22:12 RAChoice/Examples/TestImages/TestImages.r
[unknown] 2305 5782 39.9% -lh5- a2c1 Jun 1 22:09 RAChoice/Examples/TestImages/TestImages.r.info
[unknown] 3483 6448 54.0% -lh5- 0a93 May 21 02:52 RAChoice/Examples/VControl.info
[unknown] 12752 22028 57.9% -lh5- a9f2 Apr 21 18:00 RAChoice/Examples/VControl/VControl
[unknown] 3186 5954 53.5% -lh5- ef0e May 21 02:59 RAChoice/Examples/VControl/VControl.info
[unknown] 121184 121184 100.0% -lh0- f9c6 May 21 02:14 RAChoice/Examples/VControl/VControl.png
[unknown] 1397 1674 83.5% -lh5- 3768 May 21 02:59 RAChoice/Examples/VControl/VControl.png.info
[unknown] 784 3294 23.8% -lh5- ef46 May 21 02:59 RAChoice/Examples/VControl/VControl.r
[unknown] 4588 6776 67.7% -lh5- 411c May 21 02:59 RAChoice/Examples/VControl/VControl.r.info
[unknown] 1956 2806 69.7% -lh5- f1de May 21 02:59 RAChoice/Examples/VControl/VControl_BOARD.info
[unknown] 933 1531 60.9% -lh5- 59ad May 21 02:59 RAChoice/Examples/VControl/VControl_CPU.info
[unknown] 944 1302 72.5% -lh5- 791d May 21 02:59 RAChoice/Examples/VControl/VControl_HELP.info
[unknown] 1783 2152 82.9% -lh5- 5c92 May 21 02:59 RAChoice/Examples/VControl/VControl_IDESPEED.info
[unknown] 1529 1865 82.0% -lh5- 843b May 21 02:59 RAChoice/Examples/VControl/VControl_MEMLIST.info
[unknown] 1788 2427 73.7% -lh5- f0b9 May 21 02:59 RAChoice/Examples/VControl/VControl_MODULES.info
[unknown] 2520 5904 42.7% -lh5- 958a May 31 21:45 RAChoice/Locale.info
[unknown] 1172 1484 79.0% -lh5- a23d May 31 21:43 RAChoice/Locale/Help.info
[unknown] 1173 1484 79.0% -lh5- 6e06 May 31 21:43 RAChoice/Locale/Help/english.info
[unknown] 1173 1484 79.0% -lh5- 7bc0 May 31 21:43 RAChoice/Locale/Help/english/Sys.info
[unknown] 1173 1484 79.0% -lh5- 7f8b May 31 21:43 RAChoice/Locale/Help/english/Sys/Commands.info
[unknown] 985 2132 46.2% -lh5- 4e4e May 31 21:36 RAChoice/Locale/Help/english/Sys/Commands/rachoice.help
[unknown] 1446 3372 42.9% -lh5- 9ec4 May 31 21:35 RAChoice/RAChoice.readme
[unknown] 3906 6373 61.3% -lh5- 2c1c May 31 21:44 RAChoice/RAChoice.readme.info
[unknown] 2518 5904 42.6% -lh5- 0ee6 May 31 21:45 RAChoice/Sources.info
[unknown] 2791 9893 28.2% -lh5- 60b9 May 31 20:32 RAChoice/Sources/RAChoice.c
[unknown] 94 138 68.1% -lh5- 6657 May 21 22:57 RAChoice/Sources/SMakeFile
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 35 files 233370 300411 77.7% Jun 3 04:53
|
|
|
|
Page generated in 0.01 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |