This works for me (I just have to print or cancel. If you need to do
other stuff like select printer, I can't help too much with that).
# Print dialog opens
hwnd = ie.enabled_popup
w = WinClicker.new
if Cancelling
w.clickWindowsButton_hwnd(hwnd, "Cancel")
else
w.clickWindowsButton_hwnd(hwnd, "&Print")
end
Notice the difference between the names of the cancel and print
button. That seems to be important. If you try to click button "Print"
it doesn't work.
ddk