Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Ask gaming related questions
bhk
Posts: 4
Joined: 20 Apr 2024, 08:13

Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by bhk » 20 Apr 2024, 08:22

Title, I need a macro that presses the right, left and backwards thumb of my mouse when LAlt's pressed because the mouse hardware itself can't detect said input.

I've tried simpler Macro software but so far they've all failed to send the input to the game itself, the mouse cursor just pops into the screen for a second to click without the game recognising any of the clicks

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

Re: Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by mikeyww » 20 Apr 2024, 10:44

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
; How do I work around problems caused by User Account Control (UAC)?
; https://www.autohotkey.com/docs/v2/FAQ.htm#uac

LAlt:: {
 SetKeyDelay 25, 25
 SendEvent '{LButton}{RButton}{XButton2}'
 SoundBeep 1500
}

bhk
Posts: 4
Joined: 20 Apr 2024, 08:13

Re: Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by bhk » 20 Apr 2024, 15:43

Thanks for the help and the welcome although the detection issue persists, tried to change the pressed keys or delay and the game still doesn't recognize it.

The beep doesn't even play unless I TAB out of it (smart to add it there ngl)


bhk
Posts: 4
Joined: 20 Apr 2024, 08:13

Re: Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by bhk » 20 Apr 2024, 16:27

tbh I've already tried what I understood how to do in the FAQ, everything else either doesn't apply to games, the mouse or I just can't wrap my head around

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

Re: Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by mikeyww » 20 Apr 2024, 21:24

If the script works elsewhere, then it could mean that you need to run your script as admin. You can test it. That is my only suggestion. Some games block scripting.

bhk
Posts: 4
Joined: 20 Apr 2024, 08:13

Re: Lmb+Rmb+mb4 when Alt is pressed and ensuring they're detected

Post by bhk » 21 Apr 2024, 05:03

Running as admin worked flawlessly, thanks!

Post Reply

Return to “Gaming”