i need to detect mouse movement in FPS games. (in FPS games the mouse cursor stay in the middle of the screen, so we can't move it).
i think i need to find a way to detect mouse movement not cursor movement.
i found this : https://autohotkey.com/boards/viewtopic.php?t=10159 but i can't find a way to do what i need to do
I need to detect 4 axis and number of time this axis is called:
X1
X-1
Y1
Y-1
and i need to détect multiple axis and number of times this axis is called, something like this :
(i don't know how to call the axis multiple times)
Code: Select all
if mouse = y-1 (called 5 time)
MsgBox, top
if mouse = x1 and y-1 (called 5 time)
MsgBox, top right
if mouse = x1 (called 5 time)
MsgBox, right
if mouse = x1 and y1 (called 5 time)
MsgBox, bottom right
if mouse = y1 (called 5 time)
MsgBox, bottom
if mouse = x-1 and y1 (called 5 time)
MsgBox, bottom left
if mouse = x-1 (called 5 time)
MsgBox, left
if mouse = x-1 and y-1 (called 5 time)
MsgBox, top left
thanks
Sorry for my poor english.