Using Perl, Python, or Ruby, how to write a program to “click” on the screen at scheduled time?

前端 未结 5 1559
眼角桃花
眼角桃花 2021-01-16 02:32

Using Perl, Python, or Ruby, can I write a program, probably calling Win32 API, to \"click\" on the screen at scheduled time, like every 1 hour?

Details:

5条回答
  •  孤城傲影
    2021-01-16 02:57

    If using a different tool is allowed, you should take a look at AutoHotkey or AutoIt. These tools were made for this sort of thing, and I've always been keen on using the right tools for the right jobs.

    AutoHotkey is based on AutoIt I believe, and it is my personal preference. You only really need 2 functions for what you're trying to achieve, MouseMove and MouseClick.

提交回复
热议问题