Thread: Auto fire

Results 1 to 7 of 7
  1. #1
    iamat123456's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0

    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!

  2. #2
    Code5yndicate's Avatar
    Join Date
    May 2020
    Gender
    male
    Location
    0xFFFFFFFFFFF
    Posts
    16
    Reputation
    10
    Thanks
    0
    Try to use Mouse Event Method.

  3. #3
    iamat123456's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    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 :/

  4. #4
    vaisefud3's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    955
    Reputation
    10
    Thanks
    150
    My Mood
    Bored
    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?

  5. #5
    iamat123456's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    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

  6. #6
    TheGe2k's Avatar
    Join Date
    Mar 2020
    Gender
    male
    Posts
    58
    Reputation
    31
    Thanks
    274
    My Mood
    Cynical
    Credits: I don't know.

    Code:
    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
    Last edited by TheGe2k; 05-29-2020 at 10:00 AM.

  7. #7
    Anger5K's Avatar
    Join Date
    May 2020
    Gender
    male
    Posts
    151
    Reputation
    10
    Thanks
    70
    My Mood
    Lurking
    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

Similar Threads

  1. [Source Code] Hit scan and auto fire functions
    By gokhanw in forum All Points Bulletin Reloaded Hacks
    Replies: 8
    Last Post: 09-09-2011, 04:47 PM
  2. [REQUEST] G23 or USP with auto fire.
    By `Bobs Bees in forum Combat Arms Mod Request
    Replies: 5
    Last Post: 08-14-2010, 07:45 AM
  3. [SCRIPT]CoD4 Auto-Fire Script!
    By [E]Я4G3Я in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 8
    Last Post: 04-25-2010, 06:42 AM
  4. L96A1 - SR25 semi auto firing
    By sigsauer in forum Combat Arms Mods & Rez Modding
    Replies: 11
    Last Post: 12-15-2009, 07:41 AM
  5. GOOD RELEASE-AUTO FIRE!
    By Rico760 in forum Combat Arms Hacks & Cheats
    Replies: 16
    Last Post: 08-29-2008, 01:26 AM