[jawsscripts] Re: Best way of locating focus on elements in Web-based apps?

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 30 Mar 2014 08:38:25 +0300

Hi,

It seems that GetFormFieldIndex  returns integer greater than 0 if focus  is
on imput field and 0 if focus is no on imput fieldt.

If this isn't what you are searching for then may be 
GetElementDescription
Solves your problem. It returs list of tags and first of them is the active
tag.

HTH
Artur

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
Sent: Thursday, March 27, 2014 9:10 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Best way of locating focus on elements in Web-based
apps?

Thanks to many of you up here, who so kindly told me about the,
"SetJawsFindText", and "JawsFindNext" functions,  I now have been able to
set up some lovely shortCut keys for the user to very quickly locate and
activate buttons in his new Web-based front end customer service system.
And that's so far workin a treat!
:)
However, I'd like to go a level deeper now, and be able to learn how I might
least invasively, but most efficiently/robustly, locate and bring PCCursor
focus to,a given control, (or "element" I think is the term used in Web
land?) rather than just blindly using virtual find to locate text on a page.
Since sometimes, of course, text being looked for, using virtual find
mechanisms, may occur both as  an element label, and as non-clickable plain
text on the page.

And sometimes, as in this case, even as part of other Same type elements! 
E.g. suppose I have an edit field, whose label is "search," but there are
several other occurrances of the word "search" on the page.
Not only this, but there is at least one other edit field element labelled
"favorite searches," which would of course get picked up on any
StringContains deal.

What would people suggest might be some code snippets/ideas/methodologies I
might try, to accomplish tooling through elements looking for this
particular edit control, whose label is merely the word "Search," and
nothing else?

Thanks much for any tips anyone would care to share on this one?

Geoff c.

__________ļæ½

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



__________ļæ½

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

Other related posts: