Ohk, I've stripped it down to its essentials:
Now all I need is it to break without shutting down.
using namespace std;
if(GetAsyncKeyState(VK_LBUTTON))//for left mouse
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); //Click Down
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); //Click Up
Soooo... How do I stop the loop without closing the program by releasing the LMouse button?