ACC 示例

ACC 示例

Posted by Valuex on August 5, 2023

Get Element’s role text under cursor

#include ACC.ahk

obj_Element:=  Acc.ElementFromPoint()
Elm_RoleText:=obj_Element.RoleText
msgbox Elm_RoleText

Element 的属性

包括以下内容,详见ACC.ahkIAccessible element properties 这个部分的内容。

      Name                
      Value               
      Role                
      RoleText            
      Help                
      KeyboardShortcut    
      State               
      StateText           
      Description         
      DefaultAction       
      Focus               
                          
      Selection           
      Parent              
      IsChild             
      Length              
      Location            
      Children            
      Exists              
      ControlID           
      WinID               
      accessible          
      childId