motormad 0 Posted November 13, 2010 Sometimes if i fil in a form a 'alert windaw' appears. I want to be sure that i closed (with yes or no) this window before i move on. is this the best way of doing this? If WinExists("[title:Controle; CLASS:#32770]")=1 Then do WinActivate("[title:Controle; CLASS:#32770]") ControlClick("[title:Controle; CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]") until WinExists("[title:Controle; CLASS:#32770]")=0 endif Share this post Link to post Share on other sites
wakillon 404 Posted November 13, 2010 Sometimes if i fil in a form a 'alert windaw' appears. I want to be sure that i closed (with yes or no) this window before i move on. is this the best way of doing this? If WinExists("[title:Controle; CLASS:#32770]")=1 Then do WinActivate("[title:Controle; CLASS:#32770]") ControlClick("[title:Controle; CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]") until WinExists("[title:Controle; CLASS:#32770]")=0 endif you can try like this too... While WinExists("[title:Controle; CLASS:#32770]") WinActivate("[title:Controle; CLASS:#32770]") ControlClick("[title:Controle; CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]") WEnd AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
motormad 0 Posted November 13, 2010 Thanx . Yep its shorter and therefor much better Share this post Link to post Share on other sites