Skip to content

Instantly share code, notes, and snippets.

@vtchitruong
Created February 22, 2024 04:41
Show Gist options
  • Save vtchitruong/a2f23efc235043ee0b9434fa130db5b3 to your computer and use it in GitHub Desktop.
Save vtchitruong/a2f23efc235043ee0b9434fa130db5b3 to your computer and use it in GitHub Desktop.
Automate mouse clicking by AutoIT
; 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