UncleRonin
Well-known member
I mentioned in another thread that I lock my app after a certain period of disuse. The only problem is I don't know how to get whether the mouse has been moved or a key has been pressed. I know that there is supposed to be a way to do this through the API but I have absolutely no idea how to use the API, let alone manipulate it to do what I want!
I think that you use the API to monitor the event queue and then any event which is mouse event or keyboard event related to the app then you restart the idle timer for locking the app. But I really don't know how to go about this. If so someone could offer some advice or help it would be very much appreciated.
I think that you use the API to monitor the event queue and then any event which is mouse event or keyboard event related to the app then you restart the idle timer for locking the app. But I really don't know how to go about this. If so someone could offer some advice or help it would be very much appreciated.