Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.08 KB

README.textile

File metadata and controls

32 lines (21 loc) · 1.08 KB

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