Heres a code that will make you press left button automatically.
if(AutoLB==1) { if(GetAsyncKeyState(VK_LBUTTON)&1)// The reason I do this is because sometime it gets out of control as soon as you start it { keybd_event(VK_LBUTTON,0,0,0); } } else { keybd_event(0,0,0,0); }