Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect on-screen buttons and controls #40

Open
1j01 opened this issue Aug 13, 2022 · 0 comments
Open

Detect on-screen buttons and controls #40

1j01 opened this issue Aug 13, 2022 · 0 comments
Labels
affects:desktop-app Affects the Electron app enhancement New feature or request

Comments

@1j01
Copy link
Owner

1j01 commented Aug 13, 2022

To enhance dwell clicking, showing halos, centering the dwell click indicator, and use a UI element's bounding box as the region to dwell within to click it, we need information about UI elements under the cursor. For web pages, this may be done through a browser extension (#27), but for native apps we'll need to use system-specific accessibility APIs — or a cross platform one, but that will probably bring too much cruft, and cause friction.

A good strategy might be to use a high level API for a proof of concept and then, to reduce unnecessary dependencies (to make it easier to install), try copying only the parts of code that are needed.
But it may be easier to just use the native system APIs directly from the start. Have to vibe it out.

Windows

Windows looks like it has a good API for this. I think this covers everything I need:

There is also Cobra WinLDTP, which shares a cross-platform API.

macOS

There is also ATOMac - Automated Testing on Mac, the macOS version of LDTP.

Linux

I could use the LDTP API, or the underlying AT-SPI API.

In particular, getobjectnameatcoords which takes some code from Accerciser.

General

@1j01 1j01 added enhancement New feature or request affects:desktop-app Affects the Electron app labels Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:desktop-app Affects the Electron app enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant