Originally Posted by
vaisefud3
SendMessage // PostMessage?
edit: sorry, missread ur post, but it should work, sure ur not doing something wrong?
Code:
HWND hCF = FindWindow("CROSSFIRE", NULL);
unsigned __stdcall Thread::Main(LPVOID lpParam)
{
while(bOn)
{
SleepEx(500, true);
if(hCF)
{
POINT ptMouse = {512, 384};
SendMessage(hCF, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(ptMouse.x, ptMouse.y));
SendMessage(hCF, WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(ptMouse.x, ptMouse.y));
}
}
DestroyThread(GetCurrentThread(), INFINITE);
return NULL;
}
it's able to click any lobby button (mileage shop, storage, create room, join game, etc.) but while in game it doesn't do anything