accessibility-api

How to make spannable text clickable with Accessibility mode on

时间秒杀一切 提交于 2019-12-10 13:57:24
问题 I have a problem statement where i need to run my application with Accessibility setting on, to have talk back feedback, but the problem here is when i click on a TextView which have Spannable link in it, then it reads the full text but dose not allow me to click on that Spannable text separately while disabling the accessibility allows to make string multi spannable or link clickable. here is my code to make String clickable : SpannableString ss = new SpannableString("Android is a Software

How do you get current keyboard focus coordinates in Mac OS X's Accessibility API?

↘锁芯ラ 提交于 2019-12-10 11:46:25
问题 I'm looking for a Mac OS X Accessibility API to get the coordinates of the location of the current keyboard (not mouse) focus. According to page 2 of the document I found at http://www.apple.com/accessibility/pdf/Mac_OS_X_Tiger_vpat.pdf, it's doable: Supported: Mac OS X exposes the location of the current keyboard and mouse focus to assistive technologies via the Accessibility API and also provides a visual indication of the focus on-screen. Despite the statement above, I can't seem to find

how to get webview from AccessibilityNodeInfo

陌路散爱 提交于 2019-12-07 23:18:49
问题 I am creating an application in which i need to use AccessibilityService. And there is no problem to get get the window content of other applications. I have detected all available child from the window content and the child are showing in AccessibilityNodeInfo. Now I have a webview in AccessibilityNodeInfo And i need to get the URL of that WebView but there is no way to convert the AccessibilityNodeInfo into the relevant View. Is there any way to get the webview from AccessibilityNodeInfo ?

“Chrome legacy Window” when launching chrome with RunAs

青春壹個敷衍的年華 提交于 2019-12-06 19:25:26
问题 I am trying to use MSAA (on Win7) to get the addressbar in chrome browser and replace it with a different url. When chrome is launched normally (as the loggedon user), I am able to find the addressbar using the IAccessible interface by traversing through the UI tree of the window classes owned by the process. However, if I launch chrome as a different user (by using RunAs in windows), I see window with name, "chrome legacy window" when going through the classes owned by the "RunAs" process.

How to send a custom event to AccessibilityService?

最后都变了- 提交于 2019-12-06 15:31:57
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) { performGlobalAction(AccessibilityService.GLOBAL_ACTION_BACK); } @Override public void onInterrupt() { } } <?xml version=

how to get webview from AccessibilityNodeInfo

好久不见. 提交于 2019-12-06 11:11:34
I am creating an application in which i need to use AccessibilityService. And there is no problem to get get the window content of other applications. I have detected all available child from the window content and the child are showing in AccessibilityNodeInfo. Now I have a webview in AccessibilityNodeInfo And i need to get the URL of that WebView but there is no way to convert the AccessibilityNodeInfo into the relevant View. Is there any way to get the webview from AccessibilityNodeInfo ? No, because the WebView is in another process, not yours. There is not a way to access all of the

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

烈酒焚心 提交于 2019-12-06 10:47: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 the foreground (interact with the window but don't activate it). The reason I'm trying to do this is

Accessibility API stops working after sandboxing

大城市里の小女人 提交于 2019-12-06 03:31:19
问题 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 code can´t find the focused window through the accessibility API (always return NULL). The question is: the accessibility API can´t be used with sandboxing? I notice that there are applications in the Mac App Store that uses accessibility API, is

Accessibility API stops working after sandboxing

半世苍凉 提交于 2019-12-04 07:40:42
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 code can´t find the focused window through the accessibility API (always return NULL). The question is: the accessibility API can´t be used with sandboxing? I notice that there are applications in the Mac App Store that uses accessibility API, is not mandatory sandboxing by now? Thanks in advance. Dominic Tancredi First, by March June, 2012, all Apps

Mac App Store: circumvent sandbox requirement

我与影子孤独终老i 提交于 2019-12-01 00:06:06
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 following command: codesign --display --entitlements - /Applications/Cinch.app It seems the app is not