[jawsscripts] Re: FormatString function usage

Doug,

Thanks for that.  Most lucid! 


Best wishes.

Tim Burgess
Raised Bar Ltd
Phone:  +44 (0)1827 719822

Don't forget to vote for improved access to music and music technology at

http://www.raisedbar.net/petition.htm
 
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Doug Lee
Sent: 08 October 2008 16:19
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: FormatString function usage

FormatStringWithEmbeddedFunctions returns the string you pass it after it
translates any function calls in angle brackets into their return values.
The following input strings result in the indicated outputs:

My name is <getUserName()>
Returns "My name is Doug" on my machine.

<getWindowType(65556)
"Desktop" on this machine.

<getWindowClass(getFocus())>
"Invalid window handle" or "" depending on JAWS version

The last example is not allowed; no nested calls.  You also can't do things
like <3+4>, refer to variables, or do anything with objects or by-reference
parameters.  Still, it's a cool function.

On Wed, Oct 08, 2008 at 03:48:11PM +0100, Tim Burgess wrote:
Hi,

Can anybody elucidate on the usage of this function and its parameters,
please?

Best wishes.

Tim Burgess
Raised Bar Ltd
PO Box 4442
Atherstone
Warwickshire
CV9 9AT

Phone:  +44 (0)1827 719822
Email:  tim@xxxxxxxxxxxxx
Web:  http://www.raisedbar.net

Don't forget to vote for improved access to music and music technology at

http://www.raisedbar.net/petition.htm
 

__________?
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

--
Doug Lee, Senior Accessibility Programmer SSB BART Group -
Accessibility-on-Demand mailto:doug.lee@xxxxxxxxxxxxxxxx
http://www.ssbbartgroup.com "While they were saying among themselves it
cannot be done, it was done." --Helen Keller __________ Visit and contribute
to The JAWS Script Repository http://jawsscripts.com

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


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: