Hi,
I want a litle app which is supposed to log activity on a computer. I thought I could use the windows messages "WM_SYSCOMMAND:SC_MONITORPOWER" and "WM_SYSCOMMAND:SC_SCREENSAVE" to be notified when the computer is being actively used. I tried reimplementing QCoreApplication::winEventFilter() but I only get the WM_SYSCOMMAND messages when there is a widget visible. My application is based on QSystemTray and has no windows.

Does anybody have a solution to the problem? I just don't want to sniff keystrokes and mouseMoves globally.