Loop problem
ok so, here is my code:
the problem is that it won't go to the right clicking, it just keeps left clicking, it stays with in the first FOR loop. Do you know anyway to solve this? Thanks in advance.
Code:
void leftclicker()
{
for(i = 0; i=10; i++)
{
SetCursorPos(first_x, first_y);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0,0,0,0);
Sleep(500);
if(GetAsyncKeyState(VK_SHIFT) &1){
MessageBox(NULL, TEXT("BOT Stopped"), TEXT("Bot Status"), MB_OK);
messages();
}
}
for (b=0;b=1;b++)
{
SetCursorPos(second_x, second_y);
mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, 0,0,0,0);
Sleep(1000);
SetCursorPos(third_x, third_y);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0,0,0,0);
Sleep(2000);
if(GetAsyncKeyState(VK_SHIFT)){
messages();
}
rightclickunloader();
}
}
void rightclickunloader()
{
leftclicker();
}
