windows - 如何移动鼠标光标并单击?

标签 windows batch-file mousemove mouseclick-event

<分区>

像我的问题,我该怎么做?我已经开始制作一个可以打开网站的 .bat 文件,现在我希望它将光标移动到屏幕的特定 X'Y 位置并单击鼠标左键。有什么方法可以在 .bat 或任何其他类型的脚本中完成吗?

提前致谢, -斯塔姆

最佳答案

检查 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

关于windows - 如何移动鼠标光标并单击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36647393/

相关文章:

windows - 在内核驱动程序中使用 Windows 过滤平台

python - 使用python脚本调用cmd命令[youtube-upload]

windows-xp - 如何从批处理文件中的变量中删除双引号?

javascript - 在同一页面上移动多个 div

java - 如何让图像跟随鼠标移动?

javascript - mousemove 的触发如何在 Javascript 中工作?

c++ - 每个Windows服务都会调用其可执行的main函数吗?

windows - 检查当前用户 session 中是否有进程正在运行

.net - 无法加载 .Net 程序集

documentation - 批处理脚本文档