如何使用WSH -Jscript与程序交互

时间:2021-04-17 22:52:58

I am trying to click a button on an application in the systray using WSH. Is this possible? Could somebody provide an example written in Jscript please? THANKS

我试图使用WSH单击系统托盘中应用程序上的按钮。这可能吗?有人可以提供一个用Jscript编写的例子吗?谢谢

1 个解决方案

#1


No, it's not possible unless the program itself provides COM instrumentation (Office and IE does this for instance). The large majority of programs cannot be instrumented. And WSH provides very basic shell access, and as far as I know, it provides no access at all to the notification area.

不,除非程序本身提供COM工具(Office和IE就是这样做的),否则它是不可能的。绝大多数程序都无法进行检测。并且WSH提供了非常基本的shell访问,据我所知,它根本不提供对通知区域的访问。

You'll likely want some other tool that does this. While I'm not sure of an exact program, I'm sure google can yield something in the region of "windows automation."

您可能想要一些其他工具来做到这一点。虽然我不确定一个确切的程序,但我确信谷歌可以在“Windows自动化”领域产生一些东西。

#1


No, it's not possible unless the program itself provides COM instrumentation (Office and IE does this for instance). The large majority of programs cannot be instrumented. And WSH provides very basic shell access, and as far as I know, it provides no access at all to the notification area.

不,除非程序本身提供COM工具(Office和IE就是这样做的),否则它是不可能的。绝大多数程序都无法进行检测。并且WSH提供了非常基本的shell访问,据我所知,它根本不提供对通知区域的访问。

You'll likely want some other tool that does this. While I'm not sure of an exact program, I'm sure google can yield something in the region of "windows automation."

您可能想要一些其他工具来做到这一点。虽然我不确定一个确切的程序,但我确信谷歌可以在“Windows自动化”领域产生一些东西。