Solved Undetected way to Emulate mouse button press?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

enspirE

Newbie
Dank Tier Donator
Oct 19, 2014
9
104
0
I'm making a trigger bot for CS:GO and I don't want to be writing memory in order to force shoot.

What is the most recommend and most undetectable method to force a mouse button 1 press? Any way to make it seem as legit as possible in terms of actually coming from the mouse?

I'm trying to avoid using
C++:
WriteProcessMemory()
Relatively new to C++. I've read about Mouse.Event(), is that useful? Or is it VAC detectable?

Any help would be appreciated.
 

Solaire

Respected Hacker
Dank Tier VIP
Dec 15, 2013
1,051
16,353
62
C++:
  INPUT    Input={0};
  // left down 
  Input.type      = INPUT_MOUSE;
  Input.mi.dwFlags  = MOUSEEVENTF_LEFTDOWN;
  ::SendInput(1,&Input,sizeof(INPUT));

  // left up
  ::ZeroMemory(&Input,sizeof(INPUT));
  Input.type      = INPUT_MOUSE;
  Input.mi.dwFlags  = MOUSEEVENTF_LEFTUP;
  ::SendInput(1,&Input,sizeof(INPUT));
Credit to Serpent on CPlusPlus Forums. I had this same issue, hopefully this helps!
 

rN'

Jr.Hacker
Meme Tier VIP
Jan 19, 2014
340
5,268
41
*mouse_event or SendMessage and why the fckin hell should it be VAC detected?
 

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
You might have gotten brainwashed by people that said they got banned when using mouse_event, those people were probably overwatched.
 

enspirE

Newbie
Dank Tier Donator
Oct 19, 2014
9
104
0
*mouse_event or SendMessage and why the fckin hell should it be VAC detected?
Sorry, was just wondering. As I said I'm new to C++. Thanks for the info though! :)


Nah, not brainwashed, never heard that. Was legitimately wondering. I come from PHP web dev so this is all new to me.
 

rN'

Jr.Hacker
Meme Tier VIP
Jan 19, 2014
340
5,268
41
Sorry, was just wondering. As I said I'm new to C++. Thanks for the info though! :)


Nah, not brainwashed, never heard that. Was legitimately wondering. I come from PHP web dev so this is all new to me.
But why should VAC detect a mouseclick? :D
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
the most likely to be undetected way to force a mouseclick is use your forefinger. It depends on if you are left or right handed which one you use though.. so use it with care
 

dmo

Coder
Full Member
Nobleman
Nov 8, 2014
145
678
5
So, vac don't ban for ReadMemory too? Only for Write?
 

dmo

Coder
Full Member
Nobleman
Nov 8, 2014
145
678
5
Actually, it ban for write, what you can't do is write in same places of PE.
And another way, hard way, but will never be detected to simulate clicks is do a generic mouse driver and pass everything there.:lol:
 

Nwork

Newbie
Sep 24, 2014
1
102
0
main.cpp
C++:
#include <iostream>
#include <Windows.h>
#include <time.h>

using namespace std;
int main()
{
	SetConsoleTitle("RapidFire");

	bool RapidFire = false;
	int RapidFireTMR = clock();
	int Clicks;
	bool pressed = false;



	
	cout << "#Distance to the next click(Millisecond):";
	cin >> Clicks;


	
	while(true)
	{
		if(GetAsyncKeyState(VK_MBUTTON)  & 0x8000)RapidFire = true;
		else RapidFire = false;

		if(RapidFire)
		{
			if(!pressed)
			{
				pressed= true;
				mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);  
			}
			if(clock() - RapidFireTMR > Clicks)
			{
				pressed = false;
				mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); 
				RapidFireTMR = clock();
			}
		}
	}
}
Set the "font" in the properties to Multibyte.
Hold the middle mousekey to "run the clicks".
All credits to Fleep
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,164
78,998
2,399
main.cpp
C++:
#include <iostream>
#include <Windows.h>
#include <time.h>

using namespace std;
int main()
{
	SetConsoleTitle("RapidFire");

	bool RapidFire = false;
	int RapidFireTMR = clock();
	int Clicks;
	bool pressed = false;



	
	cout << "#Distance to the next click(Millisecond):";
	cin >> Clicks;


	
	while(true)
	{
		if(GetAsyncKeyState(VK_MBUTTON)  & 0x8000)RapidFire = true;
		else RapidFire = false;

		if(RapidFire)
		{
			if(!pressed)
			{
				pressed= true;
				mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);  
			}
			if(clock() - RapidFireTMR > Clicks)
			{
				pressed = false;
				mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); 
				RapidFireTMR = clock();
			}
		}
	}
}
Set the "font" in the properties to Multibyte.
Hold the middle mousekey to "run the clicks".
All credits to Fleep
thanks for sharing but FYI "font" isn't a good translation. "Character set" is fine :)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods