I have read about Message Box Default Reply the other day and it crossed my mind that it could be used to help with some aspects of sandbox automation.
What is Message Box Default Reply? Windows supports a mechanism that enables a default reply for MessageBox windows; that is – it automatically ‘clicks’ for you a default button on the message boxes.
To enable it, all you have to do is to create a EnableDefaultReply value in Registry as shown below and restart the system
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument] "EnableDefaultReply"=dword:00000001
Once the key is set and computer restarted, all standard message boxes will be automatically ‘clicked’. Check the link provided above as the mechanism enables logging and offers a few other settings which are covered in detail on Microsoft web pages.