I have a Visual Basic application where I would like to have it perform certain tasks after 60 seconds have gone by without the user clicking on anything or interacting with the screen.
So basically I would like to have a timer reset any time the user moves, clicks, or presses a key on the keyboard.
I know how to do this with particular controls on my forms, but I would like it to register even if the focus is outside my application. Any ideas?
Any help with this would be greatly appreciated.
Here's a quick example using IMessageFilter as I mentioned previously in the comments. IMessageFilter is particularly desirable here as it will work across all forms of the application, not just the main one: