Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro is waiting and not sure why
#2
I don't know why it waits, but the second AccClick probably searches in the main IE window, because it finds Internet Explorer before the dialog appears. Insert a wait command. Or, wait for the dialog, and use dialog handle in the second AccClick.

Code:
Copy      Help
AccClick("Delete" "PUSHBUTTON" "Internet Explorer" "Internet Explorer_Server" "" 0x1001)
1
int iedialog=wait(5 win("Internet Explorer" "#32770"))
AccClick("OK" "PUSHBUTTON" iedialog "Button" "" 0x1001)


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)