You cannot get banned for autohotkeys, as they do not modify the game. All it does is push a button, or click. Exactly like what your doing now. There is now way to tell if it is a human doing it or the computer.
Secondly, I am remaking the hotkeys, and will update soon. As far as im concerned I cant fix the bug where your stuck zoomed in, Just press 1 twice, or press Numpad 0 to deactivate it.