Auto fire

Posts 1–7 of 7 · Page 1 of 1
Auto fire
Hi MPGH

does anyone know why SendMessage for left click mouse doesnt work in game? it properly functions in the lobby...

and is it possible to grab a static address to fire and freeze the value???

i want to be able to send the fire button while the game is minimized

any help is appreciated!
Try to use Mouse Event Method.
Quote Originally Posted by Code5yndicate View Post
Try to use Mouse Event Method.
this does work, but doesnt work when the Crossfire window is not active or minimized :/
Quote Originally Posted by iamat123456 View Post
this does work, but doesnt work when the Crossfire window is not active or minimized :/
SendMessage // PostMessage?
edit: sorry, missread ur post, but it should work, sure ur not doing something wrong?
Quote Originally Posted by vaisefud3 View Post
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
Credits: I don't know.

Code:
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Quote Originally Posted by TheGe2k View Post
Credits: I don't know.

Code:
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Thx Man
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?