Modify

Opened 12 years ago

Closed 12 years ago

#528 closed Feature Request (Rejected)

Native Control Identification and Property Retrieval using Active Acessibility

Reported by: zfisherdrums Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: MSAA Cc:

Description

<disclaimer>
I request this understanding that it may be outside of AutoIT's intended purpose and that implementation may be prohibitively lengthy/difficult. But, "you have not because you ask not."
</disclaimer>

Control ID Descriptions should include options for accName, accRole, child index, and an optional Root handle to aid in expediting tree traversing.

Examples:

; Click on the VMWare Server list item 
$msaaControl = ControlClick( "Add or Remove Programs", "", "[NAME:VMWare Server;ROLE:listitem;ROOT:0x00050496]" )
; Click on all list items
$count = ControlCommand( "Add or Remove Programs", "", "[NAME:Add or Remove Programs]", "GetChildrenCount", "" )
For $i = 1 to $count
   $role = ControlCommand( "Add or Remove Programs", "", "[NAME:Add or Remove Programs]", "GetRole", $i )
   if ( $role = "listitem" ) then
      ControlClick( "Add or Remove Programs", "", "NAME:Add or Remove Programs];CHILD:" & $i & "]" )
   endif
Next

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by anonymous

Title correction:
should read "Accessibility"

Code example correction:

; Click on all list items
$count = ControlCommand( "Add or Remove Programs", "", "[NAME:Add or Remove Programs]", "GetChildrenCount", "" )
For $i = 1 to $count
   $role = ControlCommand( "Add or Remove Programs", "", "[NAME:Add or Remove Programs]", "GetRole", $i )
   if ( $role = "listitem" ) then
      ControlClick( "Add or Remove Programs", "", "[NAME:Add or Remove Programs;CHILD:" & $i & "]" )
   endif
Next

comment:2 Changed 12 years ago by TicketCleanup

  • Milestone Future Release deleted
  • Version Other deleted

Automatic ticket cleanup.

comment:3 Changed 12 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

I believe that objects implementing accessibility functionality do so via a COM interface that is IDispatch enabled. In short, that means you should be able to, in some manner or other, access it via AutoIt's COM functionality.

I don't see this being built-in.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.