dbTalk Databases Forums  

Scripting wIntegrate object model with vbscript?

comp.databases.pick comp.databases.pick


Discuss Scripting wIntegrate object model with vbscript? in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.