Use digital pin,both as input and outpout,without always reconfiging the pinMode

settra:
this why i am looking for a way, to make it impossible for the one relay to energize, if the other is energized. all that for one window. another 2 relays etc for the other window.
now do you understand?

And that is precisely my point. I see now that you simply do not understand how to wire up the circuit. Please study the circuit - and the explanations - on the link I provided in order to understand how to do it.

It then does not matter if both relays - or both window switches - are simultaneously pressed. when you wire the circuit correctly; the "problem" you are attempting to create has been solved long ago and it is particularly easy to do.

The motor in this circuit is always shorted out until a switch is operated. The only effect of shorting out the motor itself is to cause it to stop turning very quickly (which may sometimes be very useful). The circuit is wired so that it will not short out the supply form the car battery - that is what is important.