AccessibleObjectFromWindow does not execute method accFocus in Firefox
Posted: 24 Dec 2018, 08:39
If We run https://www.google.com in Firefox, then place mouse in front of goole search input and press f11, then we will get focused control from AccessibleObjectFromPoint function, but we will not get focused control from AccessibleObjectFromWindow function.
Anybody knows why?
Thank You!
Code: Select all
f11::
Acc := Acc_ObjectFromPoint()
GoSub test
Acc := Acc_ObjectFromWindow(WinExist("A"))
GoSub test
return
test:
loop
{
if isobject(Acc.accFocus)
Acc := Acc.accFocus
else
{
Child := Acc.accFocus
if (Child = "")
tooltip no
else
tooltip % acc.accName(Child)
sleep 2000
return
}
}
Thank You!