It worked with v2 as written with my Logitech M705 mouse. As mikeyww pointed out before, each of your GetKeyState() functions are looking for MButton. Are you sure you didn't mean the following?
Code: Select all
MButton::tooltip(A_ThisHotkey . "`n" . GetKeyState("MButton", "P"))
XButton1::tooltip(A_ThisHotkey . "`n" . GetKeyState("XButton1", "P"))
XButton2::tooltip(A_ThisHotkey . "`n" . GetKeyState("XButton2", "P"))
If none of the above worked, as you described, maybe you have the Logitech software set up to produce something else when those buttons are pressed. Try disabling that software if you have it running, or set those buttons to just produce their native function.