Mousemove sends cursor up or down, spazzes out in games

Ask gaming related questions (AHK v1.1 and older)
Eris_
Posts: 8
Joined: 09 Feb 2017, 01:07

Mousemove sends cursor up or down, spazzes out in games

08 Nov 2017, 22:49

I'm trying to match my sensitivity across two games not supported by mouse-sensitivity.com, but if I try using mousemove to move it left or right it snaps the camera as far up or down as it goes, if I try to move the camera up or down it does the same, but spins left or right crazy fast. What the hell is going on?
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Mousemove sends cursor up or down, spazzes out in games

09 Nov 2017, 07:48

Most games do not use the position of the mouse cursor to control movement.
They read mouse movement as "Delta" (Change in position) information.
You can simulate that with a mouse_event DllCall
Eris_
Posts: 8
Joined: 09 Feb 2017, 01:07

Re: Mousemove sends cursor up or down, spazzes out in games

10 Nov 2017, 00:32

Could you post an example script? I looked at your library but understood nothing.
User avatar
masheen
Posts: 295
Joined: 06 Dec 2016, 14:10

Re: Mousemove sends cursor up or down, spazzes out in games

18 Nov 2017, 20:38

evilC wrote:

Code: Select all

x : = 2
y := 0
return

F12::
	Loop 10 {
		DllCall("mouse_event", uint,1, int, x , int, y, uint, 0, int, 0)
		Sleep 20
	}
	return
can to stimulate it use PostMessage?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 39 guests