[jawsscripts] Re: FormatString function usage
- From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Wed, 8 Oct 2008 11:18:46 -0400
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
- Follow-Ups:
- [jawsscripts] Re: FormatString function usage
- From: Tim Burgess
- References:
- [jawsscripts] FormatString function usage
- From: Tim Burgess
Other related posts:
- » [jawsscripts] FormatString function usage
- » [jawsscripts] Re: FormatString function usage
- » [jawsscripts] Re: FormatString function usage
- [jawsscripts] Re: FormatString function usage
- From: Tim Burgess
- [jawsscripts] FormatString function usage
- From: Tim Burgess