does anyone know how to close a messagebox automatically?

(without the using clicking it)