Questions tagged [accessibility-api]

The classes in this package are used for development of accessibility service that provide alternative or augmented feedback to the user.They may be useful in developing applications that may help people who need alternatives to use Android phones. eg : due to physical incapabilities.

114 questions
8
votes
2 answers

How to get another application window's title, position and size in Mac OS without Accessibility API?

How can I get window's title, position and size if it does not support Accessibility API? Accessibility Inspector does not see it at all. Say, it's a xterm window in X11.app (X11->Applications->Terminal).
shoumikhin
  • 1,327
  • 15
  • 23
7
votes
3 answers

How to check if accessibility service crashed (Android Pie now displays this info in settings)?

I've found out that Android 9 now shows info if accessibility service stopped working. That was always a pain for developers who try to leverage accessibility API. Accessibility looks like enabled, but service is stopped. And to get it back to…
Bringoff
  • 1,093
  • 1
  • 10
  • 24
7
votes
2 answers

How to get an array of AXMenuItems from AXMenu?

For my code I am attempting to get an array of AXMenuItems from an AXMenu (AXUIElementRef). The menu logs successfully, and here is my code: NSArray *anArray = [NSRunningApplication…
Minebomber
  • 1,209
  • 2
  • 12
  • 35
7
votes
4 answers

Enable access for assistive device programmatically

I want to enable Access for assistive devices in System Preferences programmatically. But Problem is that my application is not running as root user and i do not want my application to be as root user and also should not ask for any…
7
votes
3 answers

Catch toast event (from any app) and get toast message

As I understood this is possible, from here Detecting toast messages But I am unable to catch any event with code snippet from the link. MyAccessibilityService.java package com.test.toasts2; import…
POMATu
  • 3,422
  • 7
  • 30
  • 42
5
votes
1 answer

Accessibility API stops working after sandboxing

My Mac App uses accessibility API to move an resize window (of other apps). I would like to submit my app to the MAS (Mac App Store). I have read that to submit an app to the MAS is mandatory to turn on sandboxing. When I turn on the sandboxing my…
Azpiri
  • 774
  • 1
  • 9
  • 20
5
votes
0 answers

What is the AXReplaceRangeWithText macOS accessibility attribute?

In macOS Mojave 10.14, a new AXReplaceRangeWithText attribute appears in the result when calling the AXUIElementCopyAttributeNames() function on the UI element under the mouse for many applications. But when I call the…
5
votes
1 answer

Android Accessibility Service stopped working after a day or two on Oreo

Background: I have a class which extends from AccessibilityService. Whenever a window is changed following function is called which gives me the application name of the foreground application. @Override public void…
Ahmad Shahwaiz
  • 1,432
  • 1
  • 17
  • 35
5
votes
1 answer

How to opt in to accessibility improvements?

I have a C# application that uses the property grid. When I edit a ContentAlignment property I get this error message: Desktop applications are required to opt in to all earlier accessibility improvements to get the later improvements. To do…
Robert Deml
  • 12,390
  • 20
  • 65
  • 92
5
votes
3 answers

How to send a custom event to AccessibilityService?

My program purpose: trigger the BACK button in a service I tried many ways, no one can achieve this purpose, finally I discovered AccessibilityService, it may be the most possible ways to implement this function. I created this AccessibilityService,…
5
votes
1 answer

Android Accessibility Service - Screen updates not consistent

I have an Android AccessibilityService deployed to a Samsung Note 4 running Android 5.0.1. I'm using WhatsApp as a test bed, but this applies to any Application and is more a question around how the Accessibility Service fires off events. The event…
tommed
  • 1,521
  • 2
  • 19
  • 33
5
votes
0 answers

Extract or reconstruct HTML from an AXWebArea

I have an AXWebArea that I can access via the Accessibility API. Is there a way to extract or reconstruct the HTML used to create the AXWebArea? The app I am debugging is modifying HTML prior to loading it into an AXWebArea and I'd like to…
brianfeucht
  • 774
  • 8
  • 21
4
votes
1 answer

Can an app in the Mac App Store ever get Accessibility permission?

I've got an app (made with ElectronJS) that relies on having Accessibility permission to listen for mouse/keyboard events (via the iohook package). I'd like to put it on the Mac App Store, but it appears that: Mac App Store requires Sandboxing…
4
votes
1 answer

Accessing the Accessibility Tree of a website

How do I query the Accessibility Tree of a website using Chrome developer tools? Is it possible to do it? I am trying to understand how the Accessibility Tree works and helps screen readers.
4
votes
0 answers

NSAccessibilityNotificationName.mainWindowChanged observer to be notified when main window changes

I would like to be notified when the main window of the frontmost app changes i.e changing a tab in a browser, changing a document in SublimeText etc. and get the title of that current main window. I'm quite new to Swift so I'd appreciate any kind…
m41w4r3.exe
  • 393
  • 2
  • 15