i have this code: $ie1.radios.each do |chk| chk.focus if $ie1.button(:index,2).exist? then $autoit.BlockInput(1) $ie1.button(:index,2).click $autoit.Send("{Enter}") $autoit.BlockInput(0) end
button(:index,2) is a remove button and it shoul remove the selected radio; the problem is that when i want to remove that radio a small window appears with title Microsoft Internet Explorer and with 2 buttons OK and CANCEL for remove item; the OK button is selected so all i have to do is to send ENTER key with autoit, but that small window blocks my script (wont execute the next command SEND({ENTER})) untill a button will be pressed. Also i cant work with the main window unless the small window is closed. How can i press the OK button? How can the script execute SEND command and not pause untill the small window will be close? _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general