home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
iakprmpt.zip
/
readme
< prev
Wrap
Text File
|
1995-04-10
|
2KB
|
72 lines
README for IAKPRMPT
This VisPro/REXX program will allow you to prompt for information
from within a REXX dialing script executing under SLIPPM.EXE.
It is intended for use with the Dial Other Providers application
(SLIPPM.EXE) provided in the Internet Access Kit with OS/2 WARP.
INSTALLATION
Place the IAKPRMPT.EXE file into a directory in your PATH.
USAGE
The program uses a named REXX queue to communicate between the
dialing script and the VisPro/REXX program. Your dialing script
should create and activate the queue, put the text containing
a prompt into the queue, then invoke the program.
A dialog box will be displayed with the contents of your prompt,
and an input field. The user then types his response and clicks
on the OK icon and the response is put back into the REXX queue
for retrieval from within your dialing script.
Here's how to set this up:
Somewhere near the beginning of your dialing script add the
following lines:
/* setup the REXX queue for any prompting required */
call RXQUEUE 'Delete', 'IAKQUE'
newq = RXQUEUE('Create','IAKQUE')
oldq = RXQUEUE('Set', newq)
Now, when your script determines that it needs to prompt for
information, you can do something like this:
queue 'Please specify phone number to dial'
address CMD 'IAKPRMPT'
parse pull phoneNumber
In this case a dialog will be displayed with the prompt text
specified in the queue command above. You can queue multiple
lines of prompt text, as the dialog displays them in a scrollable
listbox. I've found approximately 40 characters will fit in the
width of the box without needing to scroll horizontally.
The user then types his/her response in the input field of the
dialog and clicks OK. The program pushes the unedited text of the
response onto the stack and exits. You REXX script pulls a single
line from the stack to pick up the response. Responses are always
a single line.
You can now use the information returned in whatever way
necessary.
Somewhere near the end of your dialing script, add the following
line to delete the named queue:
call RXQUEUE 'Delete', 'IAKQUE'
CONTACTING THE AUTHOR
I hereby release this program into the public domain. It's free,
no charge, gratis. Have fun with it - I hope it helps you.
If you have any comments/suggestions or other feedback, please
send a note to sasmith@mailhost.wlc.com