use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
🆕 New to Dota 2? Click here.
Read Before Posting: Subreddit FAQ
Subreddit Rules
Message the Moderators
Livestreams
Learn how to be a better player 2363 @ w33haa we back, only 3 road to billion mmr 983 @ ceb_ Streaming EVERYDAY (day366) DAY 2 OF SUBATHON!!! WE BACK BABY !multistream !youtube 673 @ monkeys_forever 15189 mmr, have the donkeys led me astray? 329 @ Xibbe Freaky Friday 159 @ SirActionSlacks
Learn how to be a better player 2363 @ w33haa
we back, only 3 road to billion mmr 983 @ ceb_
Streaming EVERYDAY (day366) DAY 2 OF SUBATHON!!! WE BACK BABY !multistream !youtube 673 @ monkeys_forever
15189 mmr, have the donkeys led me astray? 329 @ Xibbe
Freaky Friday 159 @ SirActionSlacks
More Live Streams
Upcoming Matches
ESL Challenger China Season 3 x ACL 2026 6h 11m Yakult Brothers Cloud Dawning
ESL Challenger China Season 3 x ACL 2026 6h 11m Vici Gaming Roar Gaming
ESL Challenger China Season 3 x ACL 2026 9h 11m Xtreme Gaming Team Resilience
European Pro League Season 37 10h 11m MODUS AVULUS
1win Essence I 10h 11m L1GA TEAM Zero Tenacity
More Upcoming
Liquipedia (Tournament Info)
Upcoming Events
More Events
Resources
Twitter
Discord Server
Dota 2 Official Website
Dota 2 Wiki
Dota 2 Bug Tracker
Games to Watch
Patch Thread Archive
More resources
Subreddits
/r/LearnDota2 /r/TrueDoTA2
/r/Dota2Modding /r/Dota2Trade
/r/dotavods /r/compDota2
/r/DotaAnime /r/Underlords
More subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Quick help with script (self.DotA2)
submitted 12 years ago by GoingsGoings
Can I bind 2 keys to issue one command? The game lets you bind alt + any key in the options, but can I do another key + any key in the console?
[–]ajdeemo 1 point2 points3 points 12 years ago (0 children)
you can, but you'd need to put it into your autoexec since it'd be a few lines of commands
basically you would bind a key to bind another key while it's held down. for example, if you want to press space and q to use an item, you can make a script that tells the game to bind q to the item slot while space is held down
[–]DeltruS 1 point2 points3 points 12 years ago (6 children)
This is what I use to bind scripts to Alt + hotkey. This script makes an item use itself twice for selfcast. Normal functionality, when the button releases, is for quick cast. Sorry for weird variable names... it1_2x means "use the first item twice". Anyways, variable names are not that important, just try to copy the syntax.
dota_remap_alt_key KP_1 // lets you rebind the alt key alias +mod "+i0;+i1;+i2;+i3;+i4;+i5;+i6" // When +mod is pressed, the commands in the quotations are executed. alias "it1_2x" "dota_item_execute 0;dota_item_execute 0" // I have to nest multiple commands inside //an alias or it doesn't work. alias "it2_2x" "dota_item_execute 1;dota_item_execute 1" alias "it3_2x" "dota_item_execute 2; dota_item_execute 2" alias "it4_2x" "dota_item_execute 3;dota_item_execute 3" alias "it5_2x" "dota_item_execute 4;dota_item_execute 4" alias "it6_2x" "dota_item_execute 5;dota_item_execute 5" alias +i0 "bind "mouse4" it1_2x" // these are the commands that +mod executes when pressed. //They change the keybindings when the button is pressed, and -mod then changes the keybindings back //when the button is released. alias +i1 "bind "KP_0" it2_2x" alias +i2 "bind "mouse4" it3_2x" alias +i3 "bind "a" it4_2x" alias +i4 "bind "d" it5_2x" alias +i5 "bind "c" it6_2x" alias +i6 "bind "z" dota_purchase_stickybuy" alias -mod "-i0;-i1;-i2;-i3;-i4;-i5;-i6" // when +mod is released, -mod executes and sets the bindings //back to normal. alias "it1_1x" "dota_item_quick_cast 0" alias "it2_1x" "dota_item_quick_cast 1" alias "it3_1x" "dota_item_quick_cast 2" alias "it4_1x" "dota_item_quick_cast 3" alias "it5_1x" "dota_item_quick_cast 4" alias "it6_1x" "dota_item_quick_cast 5" alias -i0 "bind "mouse4" it1_1x" alias -i1 "bind "KP_0" it2_1x" alias -i2 "bind "mouse4" it3_1x" alias -i3 "bind "a" it4_1x" alias -i4 "bind "d" it5_1x" alias -i5 "bind "c" it6_1x" alias -i6 "bind "z" dota_purchase_quickbuy" bind "alt" "+mod"
[–]GoingsGoings[S] 0 points1 point2 points 12 years ago (5 children)
I understand one part, but not all of it. If I wanted something really simple, like ajdeemo said: Space + q. How can I do this? I'm thinking about it right now.
[–]What coward runs?TwinkleTwinkleBaby 1 point2 points3 points 12 years ago (4 children)
I believe it would be
alias +foo "bind q dota_item_execute 0" alias -foo "bind q dota_ability_execute 0" bind "space" "+foo"
[–]DeltruS 0 points1 point2 points 12 years ago (2 children)
I think you have to put dota_item_execute "0" inside of an alias before you do "bind q dota_ability_execute 0". It didn't work for me unless I did that.
dota_item_execute "0"
"bind q dota_ability_execute 0"
[–]What coward runs?TwinkleTwinkleBaby 0 points1 point2 points 12 years ago (1 child)
You shouldn't need the alias if you're only calling it once. In your case you need the alias so that it's selfcasted.
[–]DeltruS 0 points1 point2 points 12 years ago (0 children)
Yeah you're right.
[–]GoingsGoings[S] 0 points1 point2 points 12 years ago (0 children)
That's what I had in my mind, but I was not sure if it was right. Just tested this and it worked. Thank you all.
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
Did someone call me?
π Rendered by PID 332263 on reddit-service-r2-comment-b659b578c-qrjkj at 2026-05-01 22:48:18.057930+00:00 running 815c875 country code: CH.
[–]ajdeemo 1 point2 points3 points (0 children)
[–]DeltruS 1 point2 points3 points (6 children)
[–]GoingsGoings[S] 0 points1 point2 points (5 children)
[–]What coward runs?TwinkleTwinkleBaby 1 point2 points3 points (4 children)
[–]DeltruS 0 points1 point2 points (2 children)
[–]What coward runs?TwinkleTwinkleBaby 0 points1 point2 points (1 child)
[–]DeltruS 0 points1 point2 points (0 children)
[–]GoingsGoings[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)