Hi,
I am struggling to stop the scripting engine in VB.NET I tried multiple ways to make the following code but nothing worked for me. Always the baber pole shows running on all the open sessions.
Sapguiauto = GetObject("SAPGUI")
sapapplication = sapguiauto.getscriptingengine
For Each Connection In SapApplication.Children
If Not Connection.DisabledByServer Then
For Each session In Connection.Children
ComboBox1.Items.Add(session.Info.SystemName + " (" + CStr(session.Info.SessionNumber) + ") (" + session.Info.Client + ")")
ListBox1.Items.Add(session.Id)
Next
End If
Next
sapguiauto = Nothing
Connection = Nothing
sapapplication = nothing
session = Nothing
Even though all the variables to nothing, still the barber pole shows running. I found only the way to close the exe application to stop it. Is there any way to stop it and start when we start recording.
Thanks




