How to Disable mouse movement on second mouse?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Crimson_Lockhart
Posts: 2
Joined: 08 May 2021, 13:09

How to Disable mouse movement on second mouse?

Post by Crimson_Lockhart » 22 Jan 2022, 11:37

I need a script that will only disable mouse movement on second mouse but not affect the other mouse.
Edit: I still want to be able to use the second mouse (8) buttons for remapping.
AutoHotInterception/Monitor.ahk (To get IDS)
viewtopic.php?t=45307

Synapse3_ReplacementV1.ahk (Trying to edit this file to remove movement)
viewtopic.php?t=62695

Solved I think viewtopic.php?f=6&t=45307&start=140

Code: Select all

#SingleInstance force
#Persistent
#include Lib\AutoHotInterception.ahk

AHI := new AutoHotInterception()
mouseId := AHI.GetMouseId(0x0458,0x003A)
AHI.SubscribeMouseMove(mouseID, true, Func("MouseEvent"))

MouseEvent(x,y){
	ToolTip % "TEST"
}
TODO test

Code: Select all

AHI.SubscribeMouseMoveRelative(mouseID, true, Func("MouseEvent"))
AHI.SubscribeMouseButton(mouseID, 0, false, Func("MouseEvent"))
Last edited by Crimson_Lockhart on 23 Jan 2022, 13:36, edited 2 times in total.

User avatar
mikeyww
Posts: 26935
Joined: 09 Sep 2014, 18:38

Re: How to Disable mouse movement on 2ed mice?

Post by mikeyww » 22 Jan 2022, 15:17

There might be some earlier explanatory posts. I would search the forum for "input device", "second mouse", and "second keyboard". You might also simply be able to issue a Windows command to disable the device as if by Device Manager.

Crimson_Lockhart
Posts: 2
Joined: 08 May 2021, 13:09

Re: How to Disable mouse movement on second mouse?

Post by Crimson_Lockhart » 22 Jan 2022, 15:54

Thanks been searching this site and google but no luck

User avatar
mikeyww
Posts: 26935
Joined: 09 Sep 2014, 18:38

Re: How to Disable mouse movement on second mouse?

Post by mikeyww » 22 Jan 2022, 17:15

Oh, yeah, I just saw that you still want to use the buttons, so I'm not sure. Sorry about that. You could try responding in the first thread, or contact evilC.

Post Reply

Return to “Ask for Help (v1)”