Scripting wIntegrate object model with vbscript? -
05-20-2006
, 03:44 PM
reposting my question with all important word "wIntegrate" in subject
line
Is anyone using the ActiveX object model of Wintegrate to script with?
I am have gotten a session established and sent my username and pw but
it won't log in, seems like the host displays the login banner
"/dev/pts/4: Connected to Virtual Machine 'pick0:LINUX'."
but not the "username" prompt.
When manually logging in you have to hit Enter a few times to get the
username prompt.
I tried doing
wIntSession.Send "", wSendOptionsAppendCr
a couple of times but don't get the prompt.
I can see my username and password show up on the screen so I know they
are getting there.
__________________________________________________ ______
My script so far:
Set wIntApp = CreateObject ("wIntegrate.document")
Set wIntSession = wIntApp.Session
wIntApp.WindowState = wWindowStateNormal
Set wWindow = wIntSession.Window
With wIntSession
..Setting("Emulation") = "wyse50"
..Setting("Port") = "Windows Sockets"
..Setting("Host") = "192.168.0.17"
' open the port
..Setting("PortOpen") = "1"
End With
' should wait for "username" to appear
WScript.Sleep 3500
wIntSession.Send " ", wSendOptionsAppendCr
WScript.Sleep 500
wIntSession.Send " ", wSendOptionsAppendCr
WScript.Sleep 500
' Send my user name to the login prompt
wIntSession.Send "TT", wSendOptionsAppendCr
WScript.Sleep 500
' should wait for "password" to appear
wIntSession.Send "LLLL.1", wSendOptionsAppendCr
wintext = wWindow.Text
WScript.Echo "window text:"
WScript.Echo wintext
WScript.Echo "end of script"
WScript.Quit |