Hi UIA experts,
the SetFocus () function can bring the focus to a control if one have
the window handle. I wonder if there is a similar function for UIA or
how to create one.
For example:
var
object oUIA,
string MY_AUTOMATION_ID = "ApplyBtn"
oUIA = GetUIAObjectTree(GetAppMainForm(GetFocus()))
if oUIA then
           let oUIA = oUIA.FindByAutomationId(MY_AUTOMATION_ID)
           if oUIA then
                       ; set the focus ??
           EndIf
EndIf
I had a look at JAWS UIA Script API at
https://www.freedomscientific.com/Support/JAWSDocumentation/UIAScriptAPI
but found it a little confusing.
There are different objects, for example "FSUIA" and "FSUIAElement". The
FSUIAElement has a element "bool SetFocus();".
At the beginning you can read: "The primary object in the JAWS UIA
script API is FSUIA. Using this object, you can get other objects that
represent UIA elements, get tree walkers which will allow you to
traverse the tree of UIA elements, register for UIA events, and more."
But how to get an object UIAElement?
Do someone know: is "oUIA =
GetUIAObjectTree(GetAppMainWindow(GetFocus()))" an object of type FSUIA
and do I need to create an object "FSUIAElement"? How can I do this?
How can I execute a button? Does someone have a code example?
Thank you in advance
Udo
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts