A
Alexrgz
Guest
#include <windows.h>
int main()
{
FreeConsole();
bool autoclicking = false;
static bool autoclicker = false;
HWND target = GetForegroundWindow();
while(1)
{
if (GetAsyncKeyState(VK_F4) && !autoclicker)
{
autoclicker = true;
}
else if (!(GetAsyncKeyState(VK_F4)) && autoclicker)
{
autoclicking = !autoclicking;
autoclicker = false;
}
if (GetAsyncKeyState(VK_LBUTTON) && autoclicking)
{
target = GetForegroundWindow();
PostMessage(target, WM_LBUTTONUP,0,0);
PostMessage(target, WM_LBUTTONDOWN,0,0);
Sleep(delay);
}
if (GetAsyncKeyState(VK_F8))
{
exit(1);
}
else
{
Sleep(1);
}
}
}
/*
74.62686567164179 = 13.4 (min)
60.97560975609756 = 16.4 (max)
*/
Continue reading...
int main()
{
FreeConsole();
bool autoclicking = false;
static bool autoclicker = false;
HWND target = GetForegroundWindow();
while(1)
{
if (GetAsyncKeyState(VK_F4) && !autoclicker)
{
autoclicker = true;
}
else if (!(GetAsyncKeyState(VK_F4)) && autoclicker)
{
autoclicking = !autoclicking;
autoclicker = false;
}
if (GetAsyncKeyState(VK_LBUTTON) && autoclicking)
{
target = GetForegroundWindow();
PostMessage(target, WM_LBUTTONUP,0,0);
PostMessage(target, WM_LBUTTONDOWN,0,0);
Sleep(delay);
}
if (GetAsyncKeyState(VK_F8))
{
exit(1);
}
else
{
Sleep(1);
}
}
}
/*
74.62686567164179 = 13.4 (min)
60.97560975609756 = 16.4 (max)
*/
Continue reading...