how to reprogram sunroof on 2002 Lexus ES300

Before, the sun roof would open all the way with the OneTouch feature (click it once, it opens or closes completly)
After the battery died, this feature stopped working and you would have to hold the button to open ot close it.

Is there a way to re-program the OneTouch feature?

Asked by for the 2002 Lexus ES300
Try this: push and hold the switch on the "TILT UP" side until the moon roof tilts all the way up and then tilts down a little automatically.
thank YOU