The libuic allows to programmatically control UI elements of OS-X applications.
Objective-C C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
include
sample-app
src
.gitignore
CMakeLists.txt
Doxyfile
README.textile

README.textile

Overview

The libuic allows to programmatically control UI elements of OS-X applications. It provides the functionality to save UI elements, to perform a ‘PRESS’ action and to set the ‘AXValue’ attribute. The lib uses the mac OS-X accessibility API to control other applications.

The apple developer tools provide an ‘Accessibility Inspector’ to explore application UI elements and their possible actions:

open /Developer/Applications/Utilities/Accessibility\ Tools/Accessibility\ Inspector.app

Example

uic::UIController uiController;

// save UI element under the current mouse position
uiController.saveUiElement(1);

// perform 'PRESS' action for the last stored UI element
uiController.performAction(1, uic::UIController::PRESS, false);

Note: The included sample-app requires ncurses.

Build process

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make

Documentation

  1. cd build
  2. make docs
  3. open ../docs/doxygen/html/index.html