[jawsscripts] Re: input box in jfw

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 19 Jan 2012 22:24:29 -0700

Per the fsdn:
Function: InputBox
Description
This function displays a simple dialog box containing four controls.
One control is an edit box in which you can enter information. Another
control is a Static Text window containing the prompt of the edit box.
The other two controls are the OK and Cancel buttons. If you enter
text into the Edit box and press the OK button, the text you typed in
the Edit box is returned to the calling function by way of the third
variable of the function, which is a string variable that is passed by
reference to the calling function.

Returns
Type: Int
Description: Returns 1 if the OK button was pressed. Returns 0 if the
cancel button was pressed.


Parameters
Param 1:
Type: String
Description: The text of the message that you would like to be
displayed in the prompt of the Edit Box.
Include: Required


Param 2:
Type: String
Description: The text of the Dialog Box's title.
Include: Required


Param 3:
Type: String
Description: This parameter is passed to the calling funcction or
script by reference. If you type text in the Edit box and press the OK
button, this parameter returns the text that you typed to JFW. If you
do not enter text into the Edit box or you press the Cancel button,
this parameter contains a NULL string,
Include: Required
* Returns data by reference

The 1st parameter is the prompt, e.g., "enter number of rows." The 2nd
parameter is the title of the dialog, e.g., Data Entry Box. The last
catches the text that was entered & needs to be defined. It looks
like:
script EnterRows()
;key combination
var
string sRows,
int iRows


InputBox("Enter number of rows", "Data Entry", sRows)
;convert rows to an actual number u can calculate with
let iRows = stringToInt(sRows)
;rest of your code goes here

EndScript

On 1/19/12, Boston, Jason (RIS-OKC) <Jason.Boston@xxxxxxxxxxxxxx> wrote:
> I'm trying to use the input box to prompt the user for the number of rows. I
> can't figure out what the 2nd and 3rd parameters are?
>
> Thanks,
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, you should delete this message.  Any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, is strictly prohibited.
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


-- 
Blame the computer--why not? It can't defend itself & occasionally
might even be the culprit
Jackie McBride
Ask Me Computer Questions at: www.pcinquirer.com
Jaws Scripting training materials: www.screenreaderscripting.com
homePage: www.abletec.serverheaven.net
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: