C++ Simple AFK Bot ANYGAME .
Let's Do It Fast .
Make a timer / Loop function [easy] then write in it the following codes :
Code:
HWND MainHwnd = FindWindow(0, "Your Game's Window name here");
if (IsIconic(MainHwnd))
{
}
else
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
Sleep(50);
}
we use IsIconic to check if the games minimized / maximized [to prevent afk bot from working on desktop , which will fuck up everything]
that's it .