Quantcast
Channel: SCN : Discussion List - Scripting Languages
Viewing all articles
Browse latest Browse all 325

Parallel Execution of GUI Script VBS File issue

$
0
0

Hi ,

 

I am experience a issue while replaying a VB GUI Script in parallel. The situation is , i have 4 file .vbs file located in presentation directory from the program i am calling a FM with Starting new task to open new session and using cl_gui_frontend_services=>execute with application as WSCRIPT.EXE and file path in parameter.

 

The Gui Scripting is running fine for first 2 session but for 3rd and 4th scripting become unresponsive. I am changing the  Connection.children(Value)[Highlighted in Bold] for each script from 1 to 4 to enable it to execute in parallel. Below is the sample script initial line.

 

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(2)

End If

If IsObject(WScript) Then

   WScript.ConnectObject session,     "on"

   WScript.ConnectObject application, "on"

End If

 

 

Regards,

Kapil


Viewing all articles
Browse latest Browse all 325

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>