[Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Post gaming related scripts
User avatar
MrDodel
Posts: 96
Joined: 28 Apr 2021, 09:03
Location: Event Horizon

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

02 Nov 2021, 12:54

@Download Shrimp

You need too grab the code from post #1 (Above the sample script line) save that as MouseDelta.ahk (into your script folder) and then in your main script add the line at the top #include MouseDelta.Ahk

You can then copy the code from Sample #1 and it should run.
So much universe, and so little time. GNU Sir Terry.
alexanderlovehya
Posts: 1
Joined: 03 Sep 2022, 06:03

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

03 Sep 2022, 06:07

Is it possible to hide mouse move events? I want to convert mouse movement into keyboard strokes, but the application is still detecting my mouse movements in addition to keyboard strokes. I'd like the application to only see the keyboard strokes and not my mouse movement.
Celsius
Posts: 1
Joined: 21 Feb 2018, 02:51

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

03 Nov 2022, 13:14

So, let's say I don't want the X and Y sensitivities to be uniform. Can anyone help me with this or? This would interesting to know.

I'm guessing on the line:

if (MouseID){
x *= ScaleFactor, y *= ScaleFactor
DllCall("mouse_event",uint,1,int, x ,int, y,uint,0,int,0)

Would I need to change something here? Or, is it something more complex?
Sad
Posts: 2
Joined: 28 Sep 2023, 00:26

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

28 Sep 2023, 00:32

Hello!

I'm using the Sniper mode, it works very well.
I'd like to know if there is a way to turn it "ON" by default ?

Thanks!
Sad
Posts: 2
Joined: 28 Sep 2023, 00:26

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

28 Sep 2023, 01:14

Sad wrote:
28 Sep 2023, 00:32
Hello!

I'm using the Sniper mode, it works very well.
I'd like to know if there is a way to turn it "ON" by default ?

Thanks!
I succeed by changing the

Code: Select all

SniperMode
variables from 1 to 0, and vice-versa, then by adding an extra line

Code: Select all

md.SetState(!SniperMode)
after the line

Code: Select all

md := new MouseDelta("MouseEvent").Start()
I'm not sure this was the best way, but it works.

Is there a way to make the sniper mode work only when the game is launched ? I tried with

Code: Select all

#If WinActive("ahk_exe SoTGame.exe")
but no luck so far... and despite I know the block is working for the other hotkeys.

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 40 guests