Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait till explorer display a new page
#1
I have a problem of waiting till explorer display a new windows

This is my Macro

run "http://dgcnesyp.inegi.gob.mx/BDINE/J15/J1500189.HTM"
IeWait
wait some time and then made some selection
'TTTTTTTTTTTVTTTTTTTVTVTVTVTVY
after the line above, Internet Explorer display the answer for the selection but I have to put a wait instruction because the WA WE WC instructions doesn't work
138
'TTTTTY
90 win("File Download" "#32770")
'Y
90 win("Save As" "#32770")
'mqsc01poY
'LY



Thanks in advance
#2
You can use function HtmlFind (requires QM 2.1.4 or later). This whole macro can be rewritten to use html element actions instead of keys. Or, just use it to wait for some html element that is in the response page. Example:
Code:
Copy      Help
...
'TTTTTTTTTTTVTTTTTTTVTVTVTVTVY
;here, open "Find html element" dialog, find some element in the response page, and specify a wait time. Example:
MSHTML.IHTMLElement el=HtmlFind(...... 138)
'TTTTTY
...

If the response page is displayed in a new window, at first wait for that window:

Code:
Copy      Help
...
'TTTTTTTTTTTVTTTTTTTVTVTVTVTVY
int hwnd=wait(10 "New window title")
MSHTML.IHTMLElement el=HtmlFind(.... hwnd .... 138)
...


Forum Jump:


Users browsing this thread: 1 Guest(s)