UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jeeswg » 03 Oct 2018, 18:41

One thing of interest, in Acc, is that the left-click action can usually be invoked via accDoDefaultAction. But what about the right-click action? I usually use accLocation to get the GUI element's coordinates and then AHK's MouseClick command to right-click it.

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jeeswg » 15 Aug 2018, 07:14

- @malcev: Thanks for the info. Appreciated.
- @jethrow: Yes, these mental to-do lists that go on forever. AFAIAC, other than the zoom issue, the non-UIA scripts all looked finished to me, although maybe you had other feature ideas, which could be interesting if other people wanted to work on those scripts or similar scripts. I haven't tested the UIA script although I would gladly see it progress in time.

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by malcev » 15 Aug 2018, 05:02

jeeswg, You can download Inspect tool.
https://github.com/blackrosezy/gui-inspect-tool
You can change mode from UI Automation to MSAA in this tool to check differences.
For example UI Automation shows ProcessId and RuntimeId of control, but MSAA not.

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jethrow » 11 Aug 2018, 18:13

No problem. "Active" is a strong word, but I seek to please. Again, np - the AHK community has blessed me more that I've contributed. Thanks for the recognition, but for COM/ACC stuff props really go to folks like lexikos, Sean, tank & fincs.
... any plans ... for the future. Or the same for any other programming projects.
Not with AHK - though it still bothers me that UIA_Interface is unfinished. Hopefully it'll be superseded with a better wrapper or new MS interface.
I've been struggling to get iWB2 Learner to handle any % zoom, I will try again to fix it at some point. It's mostly there except for iframes within iframes.
Perfect - I'll check that off on my mental todo list of bugs.

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jeeswg » 11 Aug 2018, 12:49

- @jethrow: Thanks for the info.
- Nice to see you on the forums again, it's a pleasure to have you on one of my threads.
- Thanks so much for AccViewer, iWB2 Learner, WBGet, and your COM examples thread, 4 threads that spring to mind.
- I have added a 'by jethrow' list, here:
best utilities + best AutoHotkey scripts (+ useful tips) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=28149
- I would be interested to know if you have any plans or hopes for AccViewer/UIA/iWB2 Learner, for the future. Or the same for any other programming projects.
- (I've been struggling to get iWB2 Learner to handle any % zoom, I will try again to fix it at some point. It's mostly there except for iframes within iframes.) Cheers.
Internet Explorer get element under cursor (show borders, show text) (any zoom percentage) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=29458

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jethrow » 11 Aug 2018, 11:13

One of the things that really interested me about UI Automation is the ability to find elements in a treescope based on given criteria - see IUIAutomationElement::FindFirst & IUIAutomationElement::FindAll

Here's an old example for FireFox: FFWait.ahk

Re: UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by Frosti » 10 Aug 2018, 14:15

Yes there's something it can do better. Help's me to not understand it.

UI Automation v. Acc (MSAA: Microsoft Active Accessibility)

Post by jeeswg » 10 Aug 2018, 12:46

If anyone knows of any useful things that UI Automation can do, that Acc (MSAA: Microsoft Active Accessibility) can't, I would be interested. Thanks.

There are some links here re. UI Automation:
Creating COM Object Event Handler - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 77#p171077

Here is a script that uses both UI Automation and Acc:
Text Capture [ACC viewer] - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=53700

[EDIT:] Any links to AHK scripts or mentions of external programs that use Acc or UIA would also be interesting.

Top