I made a script to open SAP GUI with Python.
from win32com.client import Dispatch
#reference sapfewse.ocx like a dll file with makepy()
app = win32com.client.Dispatch("Sapgui.ScriptingCtrl.1")
conn = app.OpenConnection("System_Name", True)
ses = conn.Children
I am able to open the SAP GUI Scripting window with the code but, I think there is a problem with the Children(0) part as it does not allow me to use the ses.FindByID to access the ID tags.
Any tips?