How to reset automatic window function:
Sometimes after disconnecting the Battery on your Corolla, the automatic windows function will not work properly.
To reset the function with the ignition on, hold the relevant window button up for 5 or more seconds. This will reset the window parameters and the auto function will work again.
(Thanks to Moonstone Mart who originally posted the tip)