Input: pink crank shaft. Output: brown T-bar moving up-down and turning 180 deg. in two direction at it upper position. It is a combination of two mechanisms shown at: and …
It is an application of slider crank mechanism. The gravity ensures that the pink window is kept firmly at its open and closed positions. Inventor files of this video: