hi, 1. Make a TIMER 2. Make your own Handleevent() method and catch the mouse movement event in it (the TIMER is reset) YES, that seems to work using GetInputState(), but how to Reset Result of GetInputState() :?: FUNCTION MainLocal nIdleTimeToClose ...