I want to use AutoIt and MSAA to test the Calulator for my first step to learn the MSAA
The goal to get the button and try to click it
Now, I can use "AccessibleObjectFromPoint" to get the button, the codes are
Opt("MustDeclareVars", 1)
Opt("GUIOnEventMode", 1)
Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
Global Const $hOLEACC = DllOpen("oleacc.dll")
Run("calc")
Global $aMousePos, $aCall
While 1
$aMousePos = MouseGetPos()
$aCall = DllCall($hOLEACC, "int", "Accessible