According to the books I have read, the present participle clauses can be used to talk about:
-Things happening at the same time as, or just before, the main action.
-Result of the action in the main clause.
-Reason of the action in the main clause.
-To give background information.
But could I use it to express a condition, like this "Opening the window, you will breathe some fresh air"?