How do I make my auto clicker randomize the ms it clicks at?
How do I make my auto clicker randomize the ms it clicks at?
Please provide me the code.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
cout << "\"F\" = Toggle on\n";
cout << "\"R\" = Toggle off\n\n";
bool Click = false;
while (1)
{
if (GetAsyncKeyState('F')) // Toggle on
{
Click = true;
}
if (GetAsyncKeyState('R')) // Toggle off
{
Click = false;
}
if (Click == true) // Autoclicker
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Sleep(50);
}
}
return 0;
}
| |
I want it to click 50 to 60 ms
Last edited on
Use std::uniform_int_distribution
Topic archived. No new replies allowed.