D
D
Dmitry2015-11-24 09:20:53
Objective-C
Dmitry, 2015-11-24 09:20:53

How to make an idle detector on Mac os x?

I want to write a program that will determine whether I am afk now or not.
How to do it? I understand that you need to monitor keystrokes and mouse movements. Will it load the processor? Maybe Macos is already generating the notification I need?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Semyon, 2015-11-24
@koyard

Maybe this will help? www.xs-labs.com/en/archives/articles/iokit-idle-time

A
Artem Spiridonov, 2015-11-24
@customtema

How are screensavers arranged?
What latency (accuracy) do you need?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question