Check ac fuse in fuse box inside bonnet. Sometimes it gets loose and ac shuts off itself.. Also, if car is overheating the ac will be automatically shut off by car's ecu.
Regarding windows, usually the button goes bad in all power window cars.. Otherwise its the motor inside which goes bad very very later on..try playing with them from the main control on drivers side.
Sent from my QMobile Z10 using PW Forums mobile app