I'm writing a VB script to automate certain tasks in SAP. In the past, we've always made sure GuiXT was off when performign these tasks. However, I've been trying to get it to work with GuiXT on so that these tasks can be interchanged with actual users (who are required to keep GuiXT on at all times).
My one main problem is this. When I press a button using VBScript that makes GuiXT perform several actions, the VB script tries to continue on before GuiXT is done, causing a COM exception: "The data neccessary to complete this operation is not yet available". I tried check the GuiSession.Busy property, and looping in a waiting cycle until it cleared, but Busy doesn't seem to reflect whether GuiXT is busy or not.
Does anyone know of a way to determine if GuiXT is still processing so I can make VBScript wait until GuiXT is complete?