Such a senario, My Windows 8 App written using WinJS. I want my app to be notified when the computer is going to sleep after the user put it down and not touching it for a period of time.
What's the recommended way to implement this?
Return to the source, learn the way!