I launch in a program a script utility (scriptit from Microsoft).

This utility acted as a user with dialog box.

The problem is that when it works, the user can do something (click cancel, press esc or enterkey) that break the script. So I want to disable the inputs from the user until the end of the script (with a security). How can I do that the simplier ?