-
-
Save vtchitruong/a2f23efc235043ee0b9434fa130db5b3 to your computer and use it in GitHub Desktop.
Automate mouse clicking by AutoIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Position of mouse click | |
Local $x = 1200 | |
Local $y = 640 | |
; Interval between clicks in milliseconds | |
Local $clickInterval = 2000 | |
; Number of clicks | |
Local $clickNumber = 3 | |
; Loop clicking | |
For $i = 1 To $clickNumber step 1 | |
MouseClick("left", $x, $y) | |
ConsoleWrite('Clicked at position (' & $x & ', ' & $y & ')' & @CRLF) | |
Sleep($clickInterval) | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment