Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCOMM not working in vbscript

Status
Not open for further replies.

moving

Programmer
Aug 26, 2001
4
US
Now PCOMM not working in vbscript. Does anyone know of any problems running PCOMM classes in vbscript to conncet with AS400. The following works on some computers (sends"123" to the AS400), but not others.

Dim autECLPSObj

Set autECLPSObj = WScript.CreateObject("PCOMM.autECLPS")

Dim autECLConnList

Set autECLConnList = WScript.CreateObject("PCOMM.autECLConnList")

autECLConnList.Refresh

autECLPSObj.SetConnectionByHandle (autECLConnList(1).Handle)

autECLPSObj.SendKeys "123"

set autECLPSObj = nothing

set autECLConnList = nothing

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top