Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 638
Apprentice Programmer Avatar asked Jun 04 '13 08:06

Apprentice Programmer


1 Answers

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]")
like image 129
Mikaël Mayer Avatar answered Oct 04 '22 02:10

Mikaël Mayer