Hey I am trying to make my autoclicker only click when I hold left mouse button down.
void clikr()
{
INPUT Input ={0};
int sleepzZz = 1000 / times;
active = false;
system(“cls”);
while(1)
{
if((GetAsyncKeyState(VK_LBUTTON) & 0x8000) != 0)
{
Sleep(sleepzZz);
Input.type = INPUT_MOUSE
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
::SendInput(1, &Input, sizeof(INPUT))
::ZeroMemory(&Input, sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
::SendInput(1, &Input, sizeof(INPUT));
}
}
(I typed this out on my phone I’m so sorry ) Basically the loop cancels it self because it send leftup.
I understand I can bind it to another key but how would I go about getting this to work when I hold leftdown
Please help