Minecraft - problem with MoveMouse

Ask gaming related questions (AHK v1.1 and older)
bIaCJ
Posts: 1
Joined: 16 Jan 2020, 11:17

Minecraft - problem with MoveMouse

Post by bIaCJ » 16 Jan 2020, 12:01

I am trying to make a script, that holds right button down, moves some distance down, or up, releases and then moves double that distance other way, and then goes back to the point it started, so it kinda "oscillates" around the same point, however when i run it in minecraft, even though i have timings right(i checked in other programs like notepad etc. unless i don't notice it) with each loop it moves a little higher or lower, so character always ends up looking into to sky, or ground. I'm playing on minecraft java version 1.8.9
script i wrote:

Code: Select all

Up::
Loop, 10
{
MouseClickDrag, Right, , , 0, 20, 20, R
MouseMove, 0, -40, 20, R
MouseMove, 0, 20, 20, R
}
return

User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Minecraft - problem with MoveMouse

Post by evilC » 17 Jan 2020, 07:40

Most mouse aim games do not take input from the CURSOR, they take input from the mouse (Not the same thing)
MouseMove does not simulate mouse input, it simulates cursor movement
You need the mouse_event DllCall

Pepsi
Posts: 1
Joined: 23 Oct 2020, 12:08

Re: Minecraft - problem with MoveMouse

Post by Pepsi » 23 Oct 2020, 12:17

Hi, I have been trying to make a scripts that makes the playing look different directions in minecraft. I think I can use DllCall mouse_even to fix this but i dont know how to use it. Can anyone help me understand how DllCall mouse_event?

Post Reply

Return to “Gaming Help (v1)”