ClickEx is Copyright 1990, Software Solutions, All Rights Reserved Version 1.0 ClickEx is a simple program that allows you prompt a user to select one of several items from a Script, and execute a command based on the selection. ClickEx parameters are as follows - -c[x][y] This will allow you to center the window on the screen. Using just -c (or -cxy)centers it completely. -cx -cy will center it in only the specified direction. -pprompt Set the title for the window. This allows you to prompt the user, indicating what he is selecting. -tn n is number of seconds to wait for a response. The default value is 10 seconds. Not applicable if there are is no default. -d Next option is the default option to use if no response is given in time. If no option follows the -d, then the default is to not execute anything. options any number of options are permitted (in theory). In reality, the number of options is bound by your screen Height. If you have more options than will fit on your screen, ClickEx will terminate with an error value. An option consists of an optional prompt (followed by a colon) and an AmigaDOS command. If you have spaces in your prompt or command, you will need to surround the entire thing with quotation marks. If no prompt is given, the Command is treated as the prompt. If no Command is given after the colon, nothing is done. When the command is executed, a window will appear in the upper left corner of your WorkBench Screen, with a number of one-line gadgets. These can be selected in three ways 1. Click and release on the gadget. 2. The keys 1-9 will map to the first through ninth gadgets in the window. 3. Striking an alphabetic (a-z) key will match the first gadget in the list whose prompt begins with that key. Once the gadget is selected, the appropriate command is executed. If the 'command' to be execute begins with a single '#' then the string following it is assumed to be a return value, rather than a command. This will a script to prompt with choices, and do different things based on the return value. Note: a return value of 20 is used when ClickEx encountered a problem(memory shortage, etc.) If your command begins with a '#', use two at the beginning and it will be executed. ClickEx has been designed to work with public screens as in AmigaDos 2.0. Under AmigaDos 2.0, it will automatically appear on the default public screen. I have only been able to test it with a simple public screen program that I wrote for this purpose. If you have any problems with this, please let me know. Here are some examples: (note: LoadC and LoadAsm are assumed to be valid Amiga Scripts) ClickEx "Echo #1" "Echo #2" "Echo #3" ClickEx "Echo #1" -d "Echo #2" ClickEx -t3 "Echo #1" -d "Echo #2" ClickEx "Echo #1" "Echo #2" -d ClickEx "Echo #1" -d -t5 ClickEx "Do you want to program in C:LoadC" " ...or Assembler:LoadAsm" That's about it. Comments and questions welcome.