Text Capture [ACC viewer]

Post your working scripts, libraries and tools
robodesign
Posts: 357
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Text Capture [ACC viewer]

09 Aug 2018, 03:26

Hello!

I decided to make a script that is easy to use, to capture texts on the screen. It is basically a wrapper of work done by Sean and Jethrow. More specifically, the ACC viewer/UIA library.

It is in its very early stages... so bare with me ^_^...

To do:
-- unify the settings into a single panel
-- fix Show OSD preview; it is not showing up now...
-- when a very long text is captured, have it wrap; in other words, make the OSD show multiple text lines
-- add an option to copy text to clipboard
-- .... think of other improvements ^_^

Current version: 0.4 [2018 / 08 / 14]

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



If you have to report any bug, please let me know or if you have suggestions. Thank you .

Best regards, Marius.
Last edited by robodesign on 14 Aug 2018, 07:27, edited 4 times in total.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
Guest

Re: Text Capture [ACC viewer]

09 Aug 2018, 07:07

I haven't really looked into ACC very much but one addition that might be nice:

A hotkey to generate the code that is required to get the text from the current mouse position so you can use that in another script (provided you include the ACC code as well of course)
robodesign
Posts: 357
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: Text Capture [ACC viewer]

09 Aug 2018, 08:54

Thanks for the suggestion. However... That would be beyond the intended purpose. The purpose is to facilitate people capture/read texts on screen.


Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
robodesign
Posts: 357
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: Text Capture [ACC viewer]

10 Aug 2018, 09:30

Today's new version brings support for multiple lines of text and a new option: Show extensive ACC details [about the UI elements].

The way it breaks long lines should be further improved...
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.
User avatar
jeeswg
Posts: 4798
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Text Capture [ACC viewer]

10 Aug 2018, 12:49

- Hello robodesign, thanks for the script.
- In reference to this link:
UI Automation v. Acc (MSAA: Microsoft Active Accessibility) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=17&t=53787&p=233046#p233046
Have you found any useful things that UI Automation can do, that Acc can't? Thanks.
robodesign
Posts: 357
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: Text Capture [ACC viewer]

11 Aug 2018, 04:02

Hey, jeeswg!

The logic behind UpdateAccInfo(), where I use both UIA and ACC.... was defined by me many months ago.

I recall I started first with ACC and then added UIA. I used both because in XYplorer ACC was unreliable in capturing some texts. So, I imagined that there must be other applications out there with such issues. Hence, I use both to get the values.

Currently there are two issues I know of:

1. It does not capture tool tips in applications . Windows Narrator can do it. I am certain I could do this too...

2. Google Chrome needs something «special», a sort of message that makes it triggerweb accessibility . For some reason, UIA and ACC do not send these triggers required by Chrome.

https://www.chromium.org/developers/des ... Technology
Chrome calls NotifyWinEvent with EVENT_SYSTEM_ALERT and the custom object id of 1. If it subsequently receives a WM_GETOBJECT call for that custom object id, it assumes that assistive technology is running.


Can you please help me with this? Thank you .

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
My home page.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: divanebaba and 15 guests