relays on a timer?
Pros: You don't have to buy a current sensor
Cons: You have to time how long it takes for the window to close
Concerns: Will the other method of using a current sensor cut power sooner than just timing how long it takes the window to roll up? I'm imagining that the timer wouldn't be active more than a second or two than it needs to be; this is also probably how long the average person holds the button longer than need be held to close/open the window.