Make hay while the sun shines
Means to take opportunities when presented, a very old proverb that alludes to the difficulty of haymaking in wet weather, first listed in John Heywood Proverbs (1546). These days it is usually abbreviated to 'make hay'.