GameMaker Test For Window Being Closed

D

Drysteven

Guest
Is there a way that I can test when a user hits the red x in the top right to close the window so that I can save data before it closes?
 
Top