I am looking to open a session of RogueWave HostAccess in order to automate via SendKeys Functions. Code provided by company is listed below, but when ran the code opens a new widow of the terminal emulator, but freezes at GetObject() [2nd Line].
Error received: Microsoft Excel is waiting for another application to complete an OLE action. Run-time error 429 - ActiveX component can't create object.
Code Provided by RogueWave:
Rem Define the variable HostAccess as the data type object.
Rem This represents the HostAccess application when used for
Rem OLE automation
Dim HostAccess
Rem Create an OLE object that corresponds to HostAccess.
Rem We will use this object to invoke
Rem published automation methods.
Set HostAccess = GetObject("", "Session.Setting")
Rem Start a session with the given name
result = HostAccess.LoadSession("TEST.SES", "", True)
Rem Once HostAccess has loaded, tell it to print something
Rem on the terminal window.
result = HostAccess.ScriptExec("print ""hello world""")
Rem Close the HostAccess session
HostAccess.EndSession
Rem Unload/Exit HostAccess
HostAccess.Unload
Source:http://docs.roguewave.com/HostAccess/7.40j/HostAccessUserGuide.pdf
Thanks,