Adding onto what Codingale said, your mouse doesn't have any special name. There is mouse1-3 if you have a scroll wheel, and I have seen some that go all the way to 7.
You also stated that you would like it to where you can disable voice chat and reenable it with your mouse. Are you talking about, pressing the binded button and being able to talk, or turning off voice chat completely.
If the first option, Codingale was correct. It is +voicerecord.
If the second option, look at this:
voice_enable 0 - Voices off
voice_enable 1 - Voices on
So, say you had a mouse that had 5 buttons. You could run something like this in console, or make an autoexec to run it as soon as the game starts.
bind "mouse4" "voice_enable 0"
bind "mouse5" "voice_enable 1"
And then you can alternate between pressing those as you see fit :D
Or combine the two into one and use;
bind "del" "toggle voice_enable 0 1"
Pressing delete will turn voices off, press it again and it will turn them on again.
And you can also turn voices up and down by using this command:
voice_scale 1 - Default
voice_scale .5 - More Tolerable
voice_scale 0 - Voice volume muted
Source
What you can do is to run CS:GO, open console, then unbind said keys before you rebind them.
To open console, you must enable it trough the options menu, under key bindings and advanced settings. You can also right-click CS:GO in your steam game library and select "launch options". There you must write -console. Done correctly and the console will be open when you start the game again. I recommend you do a bindtoggle [ keyname ] console to ensure you get easy access to the console at a later point.
In console, write:
unbind [ Keyname ]
Then you can rebind them using bind [ keyname ] [ command ]
The unbind part may not be needed, but it's reasonable to do so you are sure the keys are completely set to ONLY be bound the way you want.
Best Answer
Yes, there is not need to do
-attack
or-attack2
it is automatically called by Source.You'd probably want just
bind "h" "+attack;+attack2"
After binding you can do
host_writeconfig
to save your binds, place it in theautoexec.cfg
or other CFG files in the directory.