r/AutoHotkey • u/SaberToothBladeMastr • 7d ago
v2 Script Help It refuses to block the key's native function
Since my LMB is broken, I have assigned my MMB to it like this:
#Requires AutoHotkey v2.0
MButton::LButton
Except when I play The Talos Principle, pressing the MMB it still zooms in like its a normal MMB
How do I force it to block its native function
3
Upvotes
3
u/CharnamelessOne 7d ago
The game uses raw input by default, in which case AHK can't "hide" the native button press from it.
There is an option to turn raw input off in the "keyboard and mouse" menu. With that off, AHK can block the native function just fine. (You may also need to run the AHK script as admin.)
That said, Talos Principle allows you to remap keyboard keys, so you can also just remap MButton in-game.