accessibility-api

How to send a custom event to AccessibilityService?

故事扮演 提交于 2019-12-23 03:42:17
问题 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, and tested it is work package com.accessibilityservice; public class MyAccessibilityService extends AccessibilityService { public MyAccessibilityService() { } @Override public void onAccessibilityEvent(AccessibilityEvent event) {

Cocoa accessibility API, can I click a window in the background without activating it?

白昼怎懂夜的黑 提交于 2019-12-22 18:38:28
问题 I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey app). The app I'm controlling typically has multiple windows open, with some hidden behind others. What I would like to do, if it's possible, is to send mouse events to windows using the Accessibility API in a way that presses a button in the window without bringing it to

Cocoa accessibility API, can I click a window in the background without activating it?

假如想象 提交于 2019-12-22 18:38:08
问题 I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey app). The app I'm controlling typically has multiple windows open, with some hidden behind others. What I would like to do, if it's possible, is to send mouse events to windows using the Accessibility API in a way that presses a button in the window without bringing it to

Move other windows on Mac OS X using Accessibility API

老子叫甜甜 提交于 2019-12-18 10:21:37
问题 I'm trying to use the Accessibility API to change the position of other applications windows.What I wish to do is to get all the windows on the screen from all the applications, then move them all a given offset (lets say 5 or 10 or any value). I am having difficulties doing this since this is day one of programming in Objective-C for me. Here is what I am doing right now. First, I find the list of windows and their PIDs using CGWindowListCopyWindowInfo . Then, for each window I use

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

血红的双手。 提交于 2019-12-17 17:59:18
问题 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). 回答1: 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. 回答2:

Enable access for assistive devices programmatically on 10.9

偶尔善良 提交于 2019-12-17 05:38:44
问题 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

event.getSource() returns null Accessibility in android

柔情痞子 提交于 2019-12-14 02:18:52
问题 I try to fill a EditText field by using a accessibility service like DashLane or some other apps which are using accessibility service. I am using an event view focused. When EditText gets focused the event getting started but getSource() returns null. Code: AccessibilityNodeInfo source = event.getSource(); if (source != null) { ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); ClipData clip = ClipData.newPlainText("label", "TEST DATA");

Window resizable - kAXGrowAreaAttribute always return NULL

人盡茶涼 提交于 2019-12-11 11:13:54
问题 In my app I want to check if windows from others apps are resizable. I´m using the accessibility API to test if the window has the kAXGrowAreaAttribute attribute (if NULL is not resizable) as Peter Hosey answered in this question. The problem is that the kAXGrowAreaAttribute returned value is always NULL it doesn´t matter if the window is resizable or not. Note: to retrieve the value I´m using the UIElementUtilities class from the Apple UIElementInspector example (I also have tried using

Is there an iPhone API that allows me to use VoiceOver directly in my app?

梦想与她 提交于 2019-12-10 19:16:24
问题 I'd like to allow a user to press a button directly from my app and read what's on the screen using VoiceOver. Right now, my only option is bundling recordings of each page and just playing them when the user presses the button. VoiceOver would really simplify this process. Is it possible? Thanks! Thomas 回答1: No, for more info on someone who wanted to do something similar see this link 回答2: You could use this if (UIAccessibilityIsVoiceOverRunning()) { UIAccessibilityPostNotification