I am writing a VBScript in VB.Net to automate some operation in SAP GUI. The script is recorded from SAP. All I need to do is to put this script under a button click event on vb.net.
I have done this far but get stuck at one point. While doing the execution of the script, SAP displays a Message Box with two buttons labelled "Redetermine" & "Cancel" and I have to Click on "Redetermine" button to make the script run further. The number of appearance of this message box is not fixed. Some times it appears twice and some times more than twice.
How can I detect the Message Box from my VB.Net application and automatically click on the "Redetermine" button if the message box appears?
Any help or advice is highly appreciated. Thanks. Verma