Activex组件可以创建对象:' pcomm.auteclps'使用IBM PCOMM 14.0 HACL自动化

发布于 2025-02-03 08:10:35 字数 1547 浏览 3 评论 0 原文

尝试通过Vission Studio Code IDE在VBScript中使用主机访问类自动化对象进行编程自动化IBM PCOMM v 14.0:

Option Explicit
Dim autECLPSObj 
Dim autECLConnList
Dim autECLOIAObj

Dim PSText

Set autECLPSObj = CreateObject("PCOMM.autECLPS")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set autECLOIAObj = CreateObject("PCOMM.autECLOIA")

' Refresh must be called to get latest connection info
autECLConnList.Refresh
' Initialize the connection with the first in the list
autECLPSObj.SetConnectionByHandle (autECLConnList(1).Handle)
' Initialize the connection with Session Name
autECLOIAObj.SetConnectionByName ("A")

        autECLPSObj.SendKeys "PCOMM API’s are very Powerful", 3, 1
        'autECLPSObj.SendKeys “[Enter]”
        'PSText = GetText(1, 1, 10)
        'autECLPSObj.SetCursorPos 2, 1
        autECLOIAObj.WaitForInputReady (10000)
    Set autECLPSObj = Nothing
    Set autECLConnList = Nothing
    Set autECLOIAObj = Nothing

获取以下错误: Microsoft VBScript Runtime错误:ActiveX Component无法创建对象:'PCOMM.AUTECLPS'

pcomm 文档表示自动化仅使用64位版本的MS Office起作用。

我当前安装的版本是:

  1. Office版本是“ Microsoft 365 MSO 64位”
  2. Windows OS:Windows 10 Enterprise(64位)
  3. IBM个人通信(PCOMM)版本14.0

澄清:

  1. 是否由于位不兼容而导致上述错误?基于
  2. 我如何确定是安装了64位还是32位PCOMM?
  3. 我尚不清楚办公版本和Windows OS是否应降级为32位版本?

Trying to programmatically automate IBM PCOMM v 14.0 using Host Access Class Library Automation Objects in VBScript through Visual Studio Code IDE:

Option Explicit
Dim autECLPSObj 
Dim autECLConnList
Dim autECLOIAObj

Dim PSText

Set autECLPSObj = CreateObject("PCOMM.autECLPS")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set autECLOIAObj = CreateObject("PCOMM.autECLOIA")

' Refresh must be called to get latest connection info
autECLConnList.Refresh
' Initialize the connection with the first in the list
autECLPSObj.SetConnectionByHandle (autECLConnList(1).Handle)
' Initialize the connection with Session Name
autECLOIAObj.SetConnectionByName ("A")

        autECLPSObj.SendKeys "PCOMM API’s are very Powerful", 3, 1
        'autECLPSObj.SendKeys “[Enter]”
        'PSText = GetText(1, 1, 10)
        'autECLPSObj.SetCursorPos 2, 1
        autECLOIAObj.WaitForInputReady (10000)
    Set autECLPSObj = Nothing
    Set autECLConnList = Nothing
    Set autECLOIAObj = Nothing

Getting the following error: Microsoft VBScript runtime error: ActiveX component can't create object: 'PCOMM.autECLPS'

The PCOMM documentation says Automation will work only using 64-bit version of MS Office.

My current installed versions are:

  1. Office version is 'Microsoft 365 MSO 64-bit'
  2. Windows OS: Windows 10 Enterprise (64-bit)
  3. IBM Personal Communications (PCOMM) version 14.0

Clarification:

  1. Is the above error due to bit incompatibility? Based on product readme file,I suppose the PCOMM 14.0 is 64 bit version
  2. How do I determine whether it is 64-bit or 32-bit PCOMM installed?
  3. I'm not clear whether the Office version and Windows OS should be downgraded to 32 bit version?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短暂陪伴 2025-02-10 08:10:35

PCOMM也应该是64位版本。您可以通过单击帮助>可以找到它。关于个人通讯(菜单上)。 (您需要在C驱动器上保存宏文件。)Office和PCOMM位版本都应相同。

PCOMM also should be 64bit version. you can find it by clicking Help > About Personal Communications (on the Menu). (you need to save the macro file on C drive.) Both office and PCOMM bit versions should be same.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文