The auto function stops working after the battery disconnected.
You have to fully press the button down and when the window is fully down keep the button pressed down for another 5 seconds. After this, pull up the window fully and keep pulling up the switch for 5 seconds. Now the auto function should work.