10-12-2017, 09:41 AM
try
int w4=wait(21 win("End User License Agreement" "*.Window.*"))
lef 271 12 w4 ;;title bar
lef 435 574 w4 1 ;; 'End User License Agreement'
lef 637 586 w4 1 ;;push button 'I Accept'
int th=mac("sub.CloseFailedWindow")
int w5=wait(48 win("Redistributable Installation Complete!" "*.Window.*"))
EndThread "" th
lef 518 182 w5 1 ;;push button 'OK'
#sub CloseFailedWindow
int w5=wait(111 win("Installation Failed" "*.Window.*"))
lef 480 167 w5 1 ;;push button 'OK'