自动鼠标点击与脚本/批处理文件窗口 [英] Automate mouse click in windows with script/batch file
问题描述
首先,我想指出的是,这是一个相当奇怪的问题,也是我甚至不知道,如果是计算器适合这个...
Firstly I'd like to point out that this is a rather strange question and also that I don't even know if stackoverflow is right for this...
不管怎样,有没有写一个批处理文件或其他脚本,将自动点击鼠标只要将鼠标指针恰好是在脚本运行的时间的一种方式?我的主要目标是:
Anyways, is there a way to write a batch file or some other script that will automate a mouse click wherever the mouse pointer happens to be at the time the script runs? My main goal is this:
- 运行脚本
- 检查时间是00:00 AM和上午05点 之间
- 如果它没有再继续运行检查每15分钟。
- 如果是的话,检查是否存在,目前该机 在互联网连接
- 如果有那么互联网连接继续运行脚本检查每15分钟。
- 如果没有互联网连接,然后自动鼠标左键单击无论鼠标指针在发生的时候被人指指点点。
- 继续运行做相同的检查,因为每个15分钟以上
- Run script
- Check if the time is between 00:00am and 05:00am
- If it's not then continue running checking every 15mins.
- If it IS, then check if there is internet connection on the current machine
- If there is internet connection then continue running script checking every 15mins.
- If there is NOT an internet connection then automate a left mouse click wherever the mouse pointer happens to be pointing at the time.
- Continue running doing the same checks as above every 15mins
同样,我不知道,即使这是可能的,只是想我会尝试我的运气。
在此先感谢!
Again I don't know even if this is possible, just thought I'd try my luck. Thanks in advance!
推荐答案
我会使用 AutoIt的。恕我直言,AutoIt的更适合运行脚本,其中一个系统托盘图标可能是preferable到一个控制台窗口。 AutoIt的检查的时间,的平东西,自动完成鼠标点击,大概其他任何你需要。
I'd use AutoIt. IMHO, autoit is more appropriate for running scripts where a systray icon might be preferable to a console window. AutoIt can check the time, ping something, automate a mouse click, and probably whatever else you need.
这篇关于自动鼠标点击与脚本/批处理文件窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!