How can I check if element is focused in Firefox using FF.au3 UDF?
This is my try:
I have prepared a function that checks if the object is focused:

_FFCmd('FFau3.isfocused=function isfocused(a){try{return (a === document.activeElement)}catch(e){return}}')
$oElm = _FFXPath("//*[@id='someId']")
ConsoleWrite(_FFIsFocused($oElm))
Func _FFIsFocused($sElement = "")
Local $isFoc = _FFCmd("FFau3.isfocused(" & $sElement & ")")
Return $isFoc
EndFunc ;==>_FFIsFocused
Now, the javascript part is tested and it does return successfully.
After a lot of try/fails I inserted an alert box in order to display the object being compared.
Here is what I got

The focused object is: [object XULElement]
The object that I send for comparing is [object HTMLInputElement]
Why is that?

I'm trying to determine the latest/easiest/best way (as of May 2016) to control & interact with Firefox using Autoit.
To the best I've been able to determine, there have been two different ways to do this. Once upon a time, there was something called "Mozilla ActiveX control", but given all the security warnings I receive whenever I try to download it (the original host site appears to be absent or invalid), I'd prefer to avoid it. The other approach is/was to use a UDF called "FF.au3" developed -- but apparently no longer supported for English speakers -- by Stilgar (old thread is here: https://www.autoitscript.com/forum/topic/95595-ffau3-v0601b-10/). The most recent thread I could find (in English) was started by Danp2 here: https://www.autoitscript.com/forum/topic/167661-ffau3-v0601b-15/
Although it certainly seems like using the FF UDF is the most recent and possibly only still-valid approach, getting anything sufficiently useful done with it strikes me as rather difficult, in part because the English documentation is so incomplete as to be unhelpful (and apparently incorrect as well), but also because it appears that to accomplish what I need to do might well require intimate knowledge of Firefox internals or APIs (maybe XULs too). For example, there are functions such as _FFCmd() that takes arbitrary/undocumented strings, and _FFGetValue() and_FFSetValue() with no English documentation at all (besides the minimal function descriptions in the FF.au3 file itself).
So, my question is: What is the latest and/or easiest and/or best way of interacting with Firefox using Autoit? And what else do I need to learn first in order to use it effectively (such as Firefox developer APIs, etc)?
Thanks!