如何在Windows脚本VBScript(cscript)中移动鼠标
在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的答案是“否”。
详细的答案是,如果您确实知道自己在做什么,则可以调用底层 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