Home | Contents | Index | Help | < Browse | Browse >
Getting input
If you like to run a CLI/shell program that must have input from the
keyboard, then you MUST open a new con: window for both output
and input. Like this:
button "Check" 'checkmate <>con:0/11//210/CheckMate/Close [cont] b [base]'
button "DiskCopy" 'diskcopy <>con:0/11//180/DiskC/Close from df0: to df0:'
-------------------------------------------------------------------------
Filename input
If you have AmigaDos3.0 or better, you can use the C:requestfile
command to get a filename. Here is a little example:
button "Read text" 'multiview `requestfile`'
Try it!
Please note the difference between the ` and ' signs. The ` sign
(placed over the tab button) is used in AmigaDos to pass output from
one command directly into another command. This is how it works:
Ex:
list `echo "S:"`
First the command echo is executed. The output from this command is
S:
The text `echo S:` is then replaced by the output from echo (S:)
list S:
This command is then executed.
-------------------------------------------------------------------------
Also se: How to get user input to an env variable.
Home | Contents | Index | Help | < Browse | Browse >