Apprentice Programmer
Apprentice Programmer

Reputation: 1515

Using AutoIt to click a button on a window

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.

Upvotes: 6

Views: 44511

Answers (1)

Mikaël Mayer
Mikaël Mayer

Reputation: 10701

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]")

Upvotes: 9

Related Questions