My code does solve the specific problem presented. However, under most circumstances you can close a Macola screen on startup simply by putting two lines of code in the GotFocus event of the first control in the tab order for a Macola screen. The two lines of code are presented below.
' Begin Close Form Code
SendKeys "{ESC}"
SendKeys "{ESC}"
' End Close Form Code
Now in the case that you presented you wanted a Message Box to display. If the message box pops up before the sendkeys command for whatever reason the SendKeys command no longer works. Therefore, the code in my earlier post presents a purely Flex based work around. You could also Shell out to a custom app that performs the SendKeys operation for you. If you are interested I have a VB app that does this that accepts command line parameters for the key command to send, and how much time to wait before sending the command.
Please paste the code in the post above in to the Inventory Transaction Screens VBA Editor, save the code, close the screenset, open it, and watch it do it's thing. If you wish to get in to the code again you will need to hit the Ctrl+Pause|Break key combo when the message box appears.
Hope this helps to clarify,
Scott Travis