我想在10.9上以编程方式启用对辅助设备的访问。在10.8和降低我用下面的AppleScript启用辅助设备的访问: tell application "System Events"
if UI elements enabled is false then
set UI elements enabled to true
end if
end tell
10.9,苹果已经移动辅助
我的程序目的:在服务中触发BACK按钮 我尝试了很多方法,没有人能达到这个目的,最后我发现了AccessibilityService,它可能是实现这个功能的最可能的方法。 我创造了这个AccessibilityService,并测试其工作 package com.accessibilityservice;
public class MyAccessibilityService extends