Window opener opens window again and again due to Void loop

Please post your latest working code, which statements cause the motor to close? To open? (line numbers).