Simple singnal after button click to transmitter and to receiver

I would like to ask for simple code about transmitter and receiver. I am asking directly for that bacuse I think it exists now...

After button click on the screen, the program should send electro pulse or bool value one -> (I just only mean whatever simple signal to connected transmitter).
The transmitter send this signal to receiver which will be connected with second arduino.

Thank you for reply

Please read the forum guidelines to see what sort of information that we need to be able to help you.

There are many types of transmitter and receiver. They do not all work the same. So we need to know what exact components that you have. We also need to know the Arduino board that you are using.

Please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.