XButton1 and XButton2 remap not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
imBLIND
Posts: 2
Joined: 21 Sep 2018, 03:42

XButton1 and XButton2 remap not working

21 Sep 2018, 04:14

I've taken this snippet of code from a post I found through a google search:

Code: Select all

XButton1::
	Send {Shift Down}
	KeyWait XButton1
	Send {Shift Up}
Return

XButton2::
	Send {Ctrl Down}
	KeyWait XButton2
	Send {Ctrl Up}
Return
The above code Is supposed to remap my two extra mouse keys to Shift and Ctrl, but it's still sending BrowserBack and BrowserForward. I checked with keypressOSD.ahk to see if my buttons are actually being registed, and it definitely shows up at XButton1 and XButton2 when I press the two keys. I'm not quite sure what the problem is here or how to go about fixing this. I am using a Zowie FK2 mouse with the latest drivers. If anyone can help me out with this or direct me to a post that has solved this problem, it would be much appreciated.

Thanks!
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: XButton1 and XButton2 remap not working

21 Sep 2018, 08:47

Code: Select all

XButton1::Send {Blind}{Shift Down}
XButton1 Up::Send {Blind}{Shift Up}
XButton2::Send {Blind}{Ctrl Down}
XButton2 Up::Send {Blind}{Ctrl Up}
try this instead. run as admin, turn off mouse software, maybe try these directives:

Code: Select all

#InstallMouseHook
#UseHook
imBLIND
Posts: 2
Joined: 21 Sep 2018, 03:42

Re: XButton1 and XButton2 remap not working

21 Sep 2018, 16:10

The mouse is PnP with no active software running in the background, so I can't disable the driver without disabling the whole mouse.

Your code snippet also didn't work. I added InstallMouseHook and UseHook directives, but those didn't seem to have any effect.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 352 guests