Showing posts with label auto mouse click. Show all posts
Showing posts with label auto mouse click. Show all posts

Tuesday, October 25, 2016

First AutoIt v3 script mouse click by coordinate creation

This script below will look 1000 times by clicking the 2 continuous mouse positions

Opt("Windows Title", 2)

For $i = 1 To 1000
$pos = WinGetPos("Windows Title")
$x = 439
$y = 250

WinWaitActive("Windows Title")
MouseClick("left", $pos[0] + $x, $pos[1] + $y)


$x = 371
$y = 304

WinWaitActive("Windows Title")
MouseClick("left", $pos[0] + $x, $pos[1] + $y)

Next