2

Is it possible to programatically ask Mac OS X not to turn on the screen saver while your application is active?

Kevin Laity
  • 2,409
  • 1
  • 26
  • 34

1 Answers1

3

You want to use:

UpdateSystemActivity(UsrActivity);

Here is Apple's example code.

Be aware this is deprecated for 64bit binaries, and I have not found a suitable replacement, but the struggle continues.

Community
  • 1
  • 1
i_am_jorf
  • 52,428
  • 15
  • 126
  • 218