Just to give you a proper reply rather than that above....With the window up, press the switch down fully (should be 2 click) until the window is fully down. Hold the switch down still for a couple of seconds, then pull the switch up and hold again for a couple of seconds once the window is closed.
Auto function should work again after that.
p.s also worth adding. You may notice the car may idle different after reconnecting the battery (revs will drop very low after startup almost stalling, then it will recover to normal RPM). This is normal. It should return to normal after a few runs.