6

Which function should I use in order to click a pop button after running a program? For example, the league of legends launcher button is what I want to simulate the click.

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
Apprentice Programmer
  • 1,485
  • 4
  • 26
  • 39

1 Answers1

9

You can use either MouseClick if you know the coordinates of where to click:

MouseClick("left", x, y)

Or you can use ControlClick to click on a specific button:

ControlClick("Window title", "", "[classname provided by AutoitINFO]")
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101