如何在Windows脚本VBScript(cscript)中移动鼠标

发布于 2024-09-09 05:58:49 字数 54 浏览 1 评论 0原文

在Windows脚本API中,有没有类似wshell.SendKey()函数来移动鼠标的方法?

In the Windows scripting API is there any way to move the mouse through similar to the wshell.SendKey() function?

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

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

发布评论

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

评论(1

从此见与不见 2024-09-16 05:58:49

简短的答案是“否”。

详细的答案是,如果您确实知道自己在做什么,则可以调用底层 Win32 API 来为您执行此操作。

不过,我不想通过 .net 中的 PInvoke 或直接从 C++ 来执行此操作。
考虑到您无法直接从 VBScript 调用 Win32 API,长答案也是“否”。

对不起

The short answer is "No"

The long answer is, if you really know what you're doing you can make calls to the underlying Win32 API to do this for you.

However I wouldn't like to have to do this through PInvoke in .net, or directly from C++.
Considering you can't call out to the Win32 API directly from VBScript, the long answer is also "No".

Sorry

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