Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait till explorer display a new page
#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)
...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)