在下面的格式中,它选择了树液的第一个打开的选项卡,如何选择在打开新的ABA时应该打开或至少激活的选项卡:
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on" " active first window sap
WScript.ConnectObject application, "on"