If you say that someone is making hay or is making hay while the sun shines, you mean that they are taking advantage of a situation that is favourable to them while they have the chance to.
双语例句
例: We knew war was coming, and were determined to make hay while we could.
我们知道战争即将来临,所以决定尽可能抓紧时机。