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

Post gaming related scripts
phasermaniac
Posts: 71
Joined: 09 Apr 2017, 14:05

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

14 Apr 2017, 18:54

Do you think ahkhid can help?
https://autohotkey.com/board/topic/53577-wacom-and-glovepie/
This guy seems that did something similar and says:
I have been successfully getting raw HID input (which must then be parsed) from my wacom cintiq with the AHKHID library

<!-- m -->http://www.autohotke... ... ght=ahkhid<!-- m -->

There are some test apps that you can use to capture your tablet's HID I/O messages. I also use BlockInput to block the tablet driver from adjusting the mouse, and use Autohotkey to handle the mouse movement instead
User avatar
evilC
Posts: 4336
Joined: 27 Feb 2014, 12:30

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

29 Apr 2017, 11:05

It would certainly be worth speaking to the interception guys, I dunno if Interception can do what you want, but they probably would.
AHKHID is going to be of no use at the moment, it uses the same technique as MouseDelta (Reading via RawInput API)
Our stumbling block is with blocking / intercepting.
bestguest

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

19 May 2017, 15:24

Hi,

Thank you for making these scripts! I want to implement your sniper-mode script but I am completely new to ahk....I was searching around for a way to change my DPI since my mouse has no driver or buttons to switch it and came accross your thread.
So I downloaded the LIBRARY, the first code in the first post and saved it as "MouseDelta.ahk" and then downloaded sniper-mode into same folder. Ran sniper-mode as administrator but when I press F12 the mouse sensitivity doesnt change.
What am I doing wrong?
If you could help out a noob in need :) I would be very grateful!
Also, how can I tweak the script to, make the mouse move faster instead of slower, at 600 DPI instead from default 400dpi while holding a button?
User avatar
masheen
Posts: 295
Joined: 06 Dec 2016, 14:10

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

18 Nov 2017, 20:51

evilC wrote:For anyone interested, I managed to implement MouseDelta as a C# DLL - see here


Can i to simulate this delta using PostMessage?
brutus_skywalker
Posts: 179
Joined: 24 Dec 2016, 13:16
Location: Antarctica

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

27 Mar 2018, 03:13

Helgef wrote:Someone asked for a mouse recorder in the ask for help section, so I tried to make a simple one.
My idea was, to save the delta info, eg, dx,dy, and then playback is simply MouseMove,dx,dy,0,R.
I realised quite quickly, that if you have any mouse acceleration or sensitivity settings on the mouse, the delta info doesn't match the mouse cursor, this is of course as (should be) expected, I felt stupid.
However, when I disabled these settings, to verify that my mouse recorder worked, in principle at least, I found that still some delta info seemed to be lost.
....


Sup dude, did you by any chance complete this mouse recorder, by all indications i'm guessing the code in that post was relating to an implementation as a UCR plugin.

I was wondering if you could post an abstraction of sorts that allows something like this, i only ask because you might have already done it, just as plugin for UCR:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Outsourcing Clicks & Presses Since 2004.
Helgef
Posts: 3151
Joined: 17 Jul 2016, 01:02
Contact:

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

27 Mar 2018, 04:05

Hello, maybe I have something, I do not recall, I will check later. Please send me a pm in a few days if I forget.

Cheers.
carlitototo
Posts: 1
Joined: 05 Jun 2018, 14:54

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

05 Jun 2018, 15:09

Hello Hello !
First post here, and kind of a noob to ahk, otherwise wuldn't be asking this selly question ! ! !

How do we use this librairy ?! Like, I can't figure out how to properly do something with it !

To explain the whole thing, I'm creating a bot for a game called trove to use multiple account at the same time on the same computer and reproduce the movement of the first game instance to the otherones, we got the key binded, works flawlessly, and even have an autolog, because loading 7 accounts is time consumming ( can't run more, computer can't handle it ! ). But since we need to bind the mouse movement, and this is the only option I found ( and probably the best ) How can I use it to send mouse movements to other instances ? I tried to test with the example above, but couldn't do anything, really a noob I guess ^^

Someone is up for help ?

Merci beaucoup :)

- Carlitototo
Ducky

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

11 Sep 2018, 08:27

Yeah, can we get some code that presses d when it moves to the right, and presses a for left? I am a total novice in programming too.
User avatar
evilC
Posts: 4336
Joined: 27 Feb 2014, 12:30

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

11 Sep 2018, 11:58

carlitototo wrote:Hello Hello !
First post here, and kind of a noob to ahk, otherwise wuldn't be asking this selly question ! ! !

How do we use this librairy ?! Like, I can't figure out how to properly do something with it !

To explain the whole thing, I'm creating a bot for a game called trove to use multiple account at the same time on the same computer and reproduce the movement of the first game instance to the otherones, we got the key binded, works flawlessly, and even have an autolog, because loading 7 accounts is time consumming ( can't run more, computer can't handle it ! ). But since we need to bind the mouse movement, and this is the only option I found ( and probably the best ) How can I use it to send mouse movements to other instances ? I tried to test with the example above, but couldn't do anything, really a noob I guess ^^

Someone is up for help ?

Merci beaucoup :)

- Carlitototo

This library is not for sending mouse movement, it is for responding to it

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 3 guests