I have a C++ program that im writing for one of my games that just moves the mouse down when i press mouse1. It's an external anti-recoil function that moves the mouse down in a pattern. What I'm trying to accomplish is have a while loop constantly running, checking for the state of the key press to see if mouse1 was pressed. Once it's pressed. I have code that i want to execute UNTIL mouse1 is released. Any help would be much appreciated. the function that i have now isI have a C++ program that im writing for one of