2

I wanted to use two buttons for the same action (Stop - S and Mouse 4), but I cannot find any setting to do so.

Can someone point me on how to do so?

2
  • Try to edit the config file manually ?
    – BlueTrin
    May 7, 2013 at 9:55
  • 1
    I've edited the config.cfg manually, but that didn't do anything.
    – SinisterMJ
    May 7, 2013 at 10:18

1 Answer 1

4

config.cfg is automatically generated, so it will lose any edits you make to it.

To set up custom actions for buttons you need to edit this file (you may need to create it first):
steamapps/dota 2[ beta]/dota/cfg/autoexec.cfg

To bind both S and MOUSE4 to Stop, write the following lines to autoexec.

bind S "dota_stop"
bind MOUSE4 "dota_stop"

Note that the in-game keyboard settings override the settings in autoexec, so you may need to clear the action there. Also, those custom settings are not synchronized to Steam Cloud.


In case someone needs to do the opposite – make a button execute many actions at the same time: just separate them with semicolons.

For example, you can make a button to toggle autocast no matter which skill slot it is in:

bind T "dota_ability_autocast 0; dota_ability_autocast 1; dota_ability_autocast 2; dota_ability_autocast 3"
4
  • 2
    Note: autoexec.cfg didn't exist, so I created it, and put the two lines in it (well, with bind "s" "dota_stop" instead, as in the config.cfg). It now works as I want it to, thanks a lot!
    – SinisterMJ
    May 7, 2013 at 10:56
  • Is this VAC-safe, though?
    – Kyle Yeo
    Aug 4, 2013 at 7:18
  • @RenoYeo Why wouldn't it be safe if it's part of the game
    – BlaXpirit
    Aug 4, 2013 at 8:29
  • just asking. well, that's that.
    – Kyle Yeo
    Aug 4, 2013 at 9:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .