accessibility-api

Mac App Store: circumvent sandbox requirement

﹥>﹥吖頭↗ 提交于 2019-11-30 19:28:44
问题 As many sources state on the internet, you need to have your app Sandboxed to be able to deploy it in the App Store. Furthermore, it is impossible to use the accessibility api (AXUIElement.h) when sandboxed,according to this. However, some apps still seem to use this api. One of these apps is Cinch. In the installation procedure of Cinch you need to give Cinch rights to use the accessibility API, so clearly they are using this API. After checking out the binary from the app store with the

Android unable read window content on few devices using accessibility service

喜夏-厌秋 提交于 2019-11-29 07:38:35
My requirement: Reading the text from pop up, dialog etc for particular app. I have implemented an accessibility service and I am receiving proper events and data as per my requirement. However while testing I realized that on some devices instead of using a AlertDialog or Dialog they have used an activity(themed as a dialog). Hence in my accessibility event I receive only the activity title, is there a way I could find the text displayed by this particular pop up activity? I have searched pretty hard but could not get much help on the topic nor did the documentation be of any good in this

How can I use Cocoa's Accessibility API to detect that a window is brought to front?

耗尽温柔 提交于 2019-11-28 19:18:09
问题 I'm using the Accessibility API to detect when a certain application opens windows, closes windows, when the windows are moved or resized, or made main and/or focused. However the client app seems to move a window to front without an Accessibility API notification being fired. How can my application detect when another application brings a window to front, without making it key? I'm hoping to find a solution that works on OS X 10.4 and 10.5 More info: I'm using these statements at the moment.

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

∥☆過路亽.° 提交于 2019-11-28 06:07:08
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). You should be able to get all of this window information through the methods exposed in the CGWindow.h header file. Apple's docs are online on the Quartz Window Services Reference page. They also have a very informative sample app called Son of Grab which should get you started. You can use CGWindowListCreateDescriptionFromArray(). See CGWindow.h This gives you an array of dictionaries. The

Android unable read window content on few devices using accessibility service

冷暖自知 提交于 2019-11-28 01:35:38
问题 My requirement: Reading the text from pop up, dialog etc for particular app. I have implemented an accessibility service and I am receiving proper events and data as per my requirement. However while testing I realized that on some devices instead of using a AlertDialog or Dialog they have used an activity(themed as a dialog). Hence in my accessibility event I receive only the activity title, is there a way I could find the text displayed by this particular pop up activity? I have searched

How to use Accessibility with sandboxed app?

二次信任 提交于 2019-11-27 02:59:44
问题 OS X have a nice feature such as Accessibility API, which allow to control some system elements and another applications from your app code. But it stops working after turning on Sandbox. To submit an app to the store is mandatory to turn on sandboxing. That`s what Apple say: With App Sandbox, you can and should enable your app for accessibility, as described in this document. However, you cannot sandbox an assistive app such as a screen reader, and you cannot sandbox an app that controls

Getting Window Number through OSX Accessibility API

旧巷老猫 提交于 2019-11-27 00:37:45
问题 I am working on an application that moves windows of third party applications around on the screen. To get an overview of all currently open windows, I use CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID); This returns an array of dictionaries defining every open window. Here's an exemplary dictionary returned: { kCGWindowAlpha = 1; kCGWindowBounds = { Height = 442; Width = 475; X = 3123; Y = "-118"; }; kCGWindowIsOnscreen = 1;

Enable access for assistive devices programmatically on 10.9

孤人 提交于 2019-11-26 21:33:12
I want to enable access for assistive devices programatically on 10.9. On 10.8 and lower I was using following Applescript to enable access for assistive devices: tell application "System Events" if UI elements enabled is false then set UI elements enabled to true end if end tell With 10.9, Apple has moved the accessibility options to System Preferences ➞ Security & Privacy ➞ Privacy ➞ Accessibility. Unlike previous versions of OS X, which used a universal checkbox for all applications, the new functionality in 10.9 allows users to individually choose which apps can gain control of the system

accessibility service is not started

橙三吉。 提交于 2019-11-26 19:16:26
问题 I want to log all toasts events in android ics (4.0.3), but I was unable to log any system event. Service is just not started! According to this question: onAccessibilityEvent(AccessibilityEvent event) not intercepting notification MyAccessibilityService.java package com.test.toasts2; import android.accessibilityservice.AccessibilityService; import android.accessibilityservice.AccessibilityServiceInfo; import android.app.Notification; import android.os.Parcelable; import android.util.Log;

Android: How do you check if a particular AccessibilityService is enabled

江枫思渺然 提交于 2019-11-26 06:16:50
问题 I\'ve written an Android app that requires the use of the AccessibilityService. I know how to check to see if Accessibility is enabled or disabled on the phone, but I cannot work out a way to determine if my app has been specifically enabled within the accessibility menu. I\'m wanting to prompt the user if the AccessibilityService is not running, but can\'t find a good way of doing this. Is there any API methods that I might be missing that would let me know which accessibility services are