Solved C# Moving mouse in CSGO

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

fx705HUJX0

Jr.Coder
Dank Tier Donator
Nobleman
Mar 24, 2016
65
838
0
Hello,

So i want to move the mouse externally but it will only work on the desktop or in the form.
I want to do this because i like to create no recoil.

I am moving the mouse like this:

C#:
Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 50);
What should i use instead or how could i get this working?

Thank you very much :)
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,108
78,998
2,378
Best Answer Necro:

Import SendInput and use it.

looks like this in C++
C++:
void FW::Aimbot::MoveMouse(vec3_t target, int windowWidth, int windowHeight)
{
    INPUT Input = { 0 };
    Input.type = INPUT_MOUSE;
    Input.mi.dwFlags = MOUSEEVENTF_MOVE;
    Input.mi.dx = target.x - windowWidth / 2;
    Input.mi.dy = target.y - windowHeight / 2;
    SendInput(1, &Input, sizeof(INPUT));
}
Target is the value returned from world2screen function
 

CoBanG

Newbie
Dank Tier Donator
Aug 14, 2014
21
152
0
I am curious, If you was to create your own no recoil for CSGO and never made it public would VAC/PB be able to detect it?
 

Coco Pommel

Newbie
Dank Tier Donator
Oct 19, 2012
44
1,558
0
I am curious, If you was to create your own no recoil for CSGO and never made it public would VAC/PB be able to detect it?
If you don't CP it most likely will be undetected. Also if you use RPM and WPM normalize and clamp your angles and it will be ok. (Writing to false angles gets you untrusted)
 
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