I'm working on a personal aimbot that doesn't inject to avoid being detected/ patched/ banned. I'm having trouble moving the aiming reticle when in a game. I can move the cursor, but it doesn't affect the reticle.
Is there any way to move the reticle using code that does not need to be injected? If not, I'm just going to drop it.
void mouseMove(int x_coord, int y_coord)
memset(&mouse, 0, sizeof(INPUT));
mouse.type = INPUT_MOUSE;
// flag for the mouse hook to tell that it's a synthetic event. <--I believe this is what is most important
mouse.mi.dwExtraInfo = 0x200;
mouse.mi.dx = static_cast<int>(x_coord);
mouse.mi.dy = static_cast<int>(y_coord);
mouse.mi.dwFlags = mouse.mi.dwFlags | MOUSEEVENTF_MOVE;
SendInput(1, &mouse, sizeof(mouse));
This is written in C++, compiled using GCC provided by CodeBlocks. I can't post the link of where I got it, but it is from stackoverflow. I plan to combine this with a pixel-reader, made by me, to make an aimbot.