gozzo wrote:Hey Spack, i recently got the same mouse as that and i cant get the buttons to be overridden, any chance you could help me?
First get AutoHotkey and install it:
http://www.autohotkey.com/The buttons on the mouse seem to be set as Winkey+Tab+Control (which is rotate app windows in reverse), and Winkey+C (display charms).
Create a new script file. Here's the AutoHotkey script I created:
- Code: Select all
#IfWinActive W.o.T. Client
LWin & Tab::
If (GetKeyState("LControl", "P")) {
Send 45
Return
}
LWin & C::Send 6
#IfWinActive
LWin & Tab::
If (GetKeyState("LControl", "P")) {
Send {XButton2}
Return
}
LWin & C::Send {XButton1}
What this does is if World of Tanks (W.o.T Client is the window title) is running, it sends the the keypresses "4" and then "5" for the front side button - for my setup this selects the repair kit and then repair tracks - and for the back button sends "6", which is the slot I use for the fire extinguisher.
The rest of the script is for any other application or Windows itself, which for the front button simulates side mouse button 2, and for the back one is side mouse button 1 - for instance in IE these will move forward and back through the history, just like clicking the back/forward buttons at the top left. These are the two standard side mouse button settings for Windows.
You can just delete the first block to ignore the World of Tanks settings, eg.
- Code: Select all
#IfWinActive
LWin & Tab::
If (GetKeyState("LControl", "P")) {
Send {XButton2}
Return
}
LWin & C::Send {XButton1}
Set AutoHotkey to start with Windows, and auto load the script.
BTW, I don't use the mouse any more, ended up buying a Sharkoon Drakonia - it's a great mouse, nice and hefty with the weight system and very comfortable when playing games, plus doesn't suffer from slight lag that a wireless mouse will almost always have.