I think that should do it. If you're moving when you push it, however, you'll probably have to push it twice. There's really no way around that; the macro execution reaches the "/cast Hex" line before the game client is aware that the Ancestral Swiftness buff is active.