just use mouse_moving which is 0 when the mouse is not moving - much better as you did wink