Move Mouse Back after shoot

Ask gaming related questions (AHK v1.1 and older)
wyw
Posts: 93
Joined: 12 Dec 2015, 19:11

Move Mouse Back after shoot

30 May 2018, 13:59

Is it possible to make a script, that after I used my Left Mouse Button, the script remembers the mouse position and goes back? Because I play a game (ArmA 3) where you, when you shoot, basically turn around a bit after you were shooting with your weapon. You know what I mean?

I imagine it like this: I shoot, I turn around a bit (that is how the game is built) and the script goes to the exact mouse position before I were shooting, but of course it should not always remember the first position. It should always do this whenever I'm shooting.
brulok

Re: Move Mouse Back after shoot

30 May 2018, 14:46

Can you describe this "turn around a bit" behavior a bit more? Unable to help without explanation.
Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Move Mouse Back after shoot

01 Jun 2018, 03:31

Hallo,
try:

Code: Select all

CoordMode, Mouse ,Screen
MouseGetPos,X,Y
~*LButton::MouseGetPos,X,Y
*q::MouseMove,X,Y,0
each time you press key Q the mouse moves back to the last click location

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: slowwd and 33 guests