Detecting if the screensaver is active and/or the user has locked the screen in Windows

前端 未结 6 1083
遇见更好的自我
遇见更好的自我 2020-12-09 06:50

I\'m writing an app that at times will send notifications to the user in the form of toaster messages.

If the user is not there, he can\'t see the notification. So w

6条回答
  •  渐次进展
    2020-12-09 07:13

    There are many reason why the user can't see your notifications also for example full screen video playback or that the user is just not there.

    I suggest that instead of checking if the notification can be displayed check if the user is there, you can do that by monitoring the keyboard and mouse.

提交回复
热议问题