Hello everyone. This is my first post but won't be my last. Ok now to the meat of it. I want to make a program that determine if a terminal has been idling for a while say 5 minutes then Lock the computer. I have the concept down but i don't know how to detect mouse movement or clicks. I think Term::ReadKey should work for the keyboard detection, but if someone has a better idea im open to change. This will be running in the backround of an XP computer so i can do other things whilst this runs, and it should still detect and stuff. Thanx.