Hello I am automating the installation of my application. I use winwait to wait for the next window to appear, then controlsend commands. WinWait("Setup - My application","")
ControlSend("Setup - My application", "", "[CLASS:Button; INSTANCE:1]", "{ENTER}")
WinWait("Setup - My application","")
ControlSend("Setup - My application", "", "[CLASS:Button; INSTANCE:2]", "{ENTER}")
WinWait("Setup - My application","")
ControlSend("Setup - My application", "", "[CLASS:Button; INSTANCE:2]", "{ENTER}"