Language:
Free Online Dictionary|3Dict

相机而行

Source : CEDICT

to act as the circumstances require (idiom)