you dont need macros for dota 2. You only have 4 moves; the best configuration is setting wasd to move the camera, and qerf for your moves.
Remember to hit shift+1 while your hero is selected; this will hotkey your hero to 1 incase you ever select something else by accident; then set space for attack, and zxcvbn for your items.

You don't need macros because there's nothing to macro