how to open console while the hack was on

There's an option to enable the console in the game's options. You'll then need to press the backslash key to open it.
 
i cant open the console while the hack was on going
Add in your dota x32 shortcut -console as on this screen. (dont forget about SPACE key before " - ")
a4891fde.png
And chose some key in game. Standart open console key is " ~ "