How to block user actions while robot is running?

Hello to all RPA developers!

Developing my demo project I have faced such problem, that user, who doesn’t know, that making actions while robot is running may cause a problem to the whole process. So my question is how to block all user actions(mouse, keyboard), while robot is running. It could be UiPath solutions or just windows script, all is acceptable!

THANK YOU!

we can use this activity

Cheers @Andrey_Voinalovich

Thank you very much! @Palaniyappan

Cheers @Andrey_Voinalovich