Coordinates are obtained using ImageSearch but I simplified the example and set it to 100, 200.
I need to press the center of the button, that's why I add +30 and +10 to coordinates:
Code: Select all
x = 100
y = 200
x += 30
y += 10
click, %x%, %y%
Code: Select all
x = 100
y = 200
click, %x%+30, %y%+10
Code: Select all
x = 100
y = 200
click, % x+30, % y+10
Code: Select all
x = 100
y = 200
click, x+30, y+10