Exploratory Mac app w/ scripted A/V output

Discussion in 'Mac Programming' started by Sparkly, Jan 23, 2011.

  1. Sparkly macrumors newbie

    Jan 23, 2011
    This thread is about an app I am currently writing a proof of concept for. It's up in the air whether this will materialize so I don't have a definite name for it yet.

    My first question for the forum is whether the Mac API contains C/C++ functions for programmatically generating key press and mouse events? This would be used for testing. This would not be run from a script; the app itself would trigger the events.
  2. Sparkly thread starter macrumors newbie

    Jan 23, 2011
    Looks like CGEventCreateMouseEvent and CGEventCreateKeyboardEvent may work.

Share This Page