如何移动鼠标光标并点击?

像我的问题一样,我该怎么做? 我已经开始制作一个.bat文件,它将打开网站,现在我希望它将光标移动到屏幕的特定X'Y位置,然后左键单击。 有没有办法,我可以在.bat或任何其他types的脚本中做到这一点?

在此先感谢,史丹

检查mouse.bat – 这是一个自编译的C#/批处理文件,不需要外部工具,源代码可见且可编辑。

例子:

 //clicks at the current position call mouse click //double clicks at the current position call mouse doubleClick //right clicks at the current position call mouse rightClick //returns the position of the cursor call mouse position //scrolls up the mouse wheel with 1500 units call mouse scrollUp 150 //scrolls down with 100 postitions call mouse scrollDown 100 //relatively(from the current position) moves the mouse with 100 horizontal and 100 vertial postitions call mouse moveBy 100x100 //absolute positioning call mouse moveTo 100x100 //relative drag (lefclick and move) call mouse dragBy 300x200 //absolute drag call mouse dragTo 500x500