How to make relay controller with arduino (serial)

I want to make two on-screen graphic buttons, one for first relay, one for second relay. When you click one button, relay will be closed for some time (for exampe: 1 sec.) and after that time relay will open. The same for second relay.

I don't know how to make this, can somebody help me with making, I know it is easy and it doesn't tako a lot of time but I don't know how to do it.
Thank you so much.

I want to make two on-screen graphic buttons

On what screen? The Arduino does NOT have a graphic screen, unless you added one that you couldn’t be bothered to post a link to.

I don’t know how to make this

And we don’t know what screen you have, what pins it is connected to, what library you are using to draw graphics on the screen, where the buttons are, and/or what pins the relay are connected to, so you really are on your own.

I know it is easy and it doesn’t tako a lot of time but I don’t know how to do it.

Then, why do you ASSume that it easy?

What are you using to draw the screen that will have the graphic buttons?
What hardware will the screen be displayed on?

Don't you think we might need to know that?

...R