[jawsscripts] Re: Running a script based upon a string

  • From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 31 Jan 2012 21:58:20 -0600

Isn't there a thing called FormatStringWithEmbeddedFunctions?

You have to put the function name in  <>
Less than and greater than signs,  and the returned value of the function 
gets substituted for the function name.
If you want to run a script,  preceed it with a dollar sign.

var
    string s

Let s = "<$MyScript>"

Just going from memory on that.  But, I think it can be done.




----- Original Message ----- 
From: "Jackie McBride" <abletec@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, January 31, 2012 4:37 AM
Subject: [jawsscripts] Re: Running a script based upon a string


var sTemp
; put code in to obtain a value for sTemp
let sTemp = stringlower(sTemp)
if (StringContains(sTemp, "sayline()") then
performscript (sayline()
endif

Hard to know what you're really looking for, but perhaps that'll give
u somethin to think about in the wee hours.

On 1/31/12, Bob Kennedy <intheshop@xxxxxxx> wrote:
> I'm not quite sure what you're after, but if you already have a script 
> that
> does what you want, you can do a perform script and then list that script
> name.  That sounds kind of simple for what you are asking though.
>
>
> ----- Original Message -----
> From: "Brian Hartgen" <jaws@xxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Tuesday, January 31, 2012 3:44 AM
> Subject: [jawsscripts] Running a script based upon a string
>
>
> Hi everyone!
> I am creating some scripts to help out a jaws user. It's quite an
> interactive project which is almost complete but I have a question if 
> anyone
> can please help.
>
> I have the name of a jaws script contained within a text string, called
> temp. What I want to do is run a jaws script based upon the text stored
> within the string. So, if jaws is aware of the fact that the string temp
> contains the words SayLine, I want it to run the script for SayLine, 
> reading
> the current line. Is it possible please to do this?
>
> Thanks.
>
> Brian Hartgen
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> __________�
>
> 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



__________�

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

Other related posts: