in the process idiom
C2 同时,在…的过程中
If you are doing something, and you do something else in the process, the second thing happens as a result of doing the first thing.
I stood up to say hello and spilled my drink in the process. 我站起来打招呼时把饮料弄洒了。