Message Box Output if Auto Closed

The message box is automatically closed after a certain seconds if the option named AutomaticallyCloseAfter is not 0.
However, if a OkCancel message box is closed automatically, the output from it would be Ok by default.

Can I set the output to Cancel?

Nope, I believe you can’t directly assign the output to Cancel. By default, it will be Ok if the AutomaticallyCloseAfter option is set to a value other than 0. This is the standard behavior of the Message Box activity in UiPath.

@ke468026

You can use if activity. Assing the value before if condition. Then use if activity.

Thanks for suggestion. I’ve solved it.
BTW, you mean assigning?

I see…
Thanks for reply.