I need to figure out how to send more left clicks, when I click.
Ive tried lots of beginner things, since I'm a beginner, but can't seem to figure it out without completely skidding something else.
int main() {
bool click = false;
while (1) {
if (GetAsyncKeyState(VK_LBUTTON))
{
click = true;
}
if (GetAsyncKeyState(VK_LBUTTON));
{
click = false;
}
if (click == true)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
I expect it to click 4 times when I click once, but it doesn't seem to work