Back when I had Cavaliers, you’d to program the windows to learn where the top and bottom were by pressing and holding the control for several seconds after the window had got to the extent of the travel.
You could tell when they were set correctly as the control would full-click to open / close all the way rather than stop when you released the button.
I can’t remember offhand whether that was a requirement for the remote open / close to work, but it wouldn’t surprise me.
Yeah, my Mondeo was the same – pretty certain the global opening/closing wouldn’t work until it had learnt the window up/down positions (if, for example, the battery had been disconnected for whatever reason).