Nothing in depth at this time as we are still working through some issues with accessing this port on a remote server and having the port reopen when the application is closed. But something like this works just fine.
Open the application with the remote debugging port set to 8081. Do your things to open the CEF window and then get your objects. The code below will get the only checkbox in the CEF window and the check it.
Code: Select all
ChromeLegacyWindow := Winexist("Chrome_WidgetWin_01")
AccChromewin := Acc_Get("Object", "4", 0, "ahk_id " ChromeLegacyWindow)
AccCheckBox := GetElementByRole(AccChromewin, "check box")
AccCheckBox.AccDoDefaultAction()
GetElementByRole(AccObj, Role) {
if (Acc_GetRoleText(AccObj.accRole(0)) = Role)
return AccObj
for k, v in Acc_Children(AccObj)
if IsObject(obj := GetElementByRole(v, Role))
return obj
}