自动鼠标点击与脚本/批处理文件窗口 [英] Automate mouse click in windows with script/batch file

查看:3679
本文介绍了自动鼠标点击与脚本/批处理文件窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想指出的是,这是一个相当奇怪的问题,也是我甚至不知道,如果是计算器适合这个...

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:


  1. 运行脚本

  2. 检查时间是00:00 AM和上午05点
  3. 之间
  4. 如果它没有再继续运行检查每15分钟。

  5. 如果是的话,检查是否存在,目前该机
  6. 在互联网连接
  7. 如果有那么互联网连接继续运行脚本检查每15分钟。

  8. 如果没有互联网连接,然后自动鼠标左键单击无论鼠标指针在发生的时候被人指指点点。

  9. 继续运行做相同的检查,因为每个15分钟以上

  1. Run script
  2. Check if the time is between 00:00am and 05:00am
  3. If it's not then continue running checking every 15mins.
  4. If it IS, then check if there is internet connection on the current machine
  5. If there is internet connection then continue running script checking every 15mins.
  6. If there is NOT an internet connection then automate a left mouse click wherever the mouse pointer happens to be pointing at the time.
  7. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆