@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.
[Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
So much universe, and so little time. GNU Sir Terry.
-
- Posts: 2
- Joined: 13 Oct 2021, 19:25
Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
@MrDodel
Problem solved, thank you so much.
Problem solved, thank you so much.
-
- 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)
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.
Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
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?
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?
Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
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'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!
Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
I succeed by changing the
Code: Select all
SniperMode
Code: Select all
md.SetState(!SniperMode)
Code: Select all
md := new MouseDelta("MouseEvent").Start()
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")