Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems again
#4
I am sure you will find the right function in the Html Element Actions dialog.

This example macro opens google advanced search page, waits for it, fills two first text fields, selects 50 from the combo box, and clicks the "Google Search" button. I usually use this method to enter userid and password in web pages, because I don't have to manually set focus to the userid field.

Code:
Copy      Help
web "http://www.google.com/advanced_search" 0x1
MSHTML.IHTMLElement el=htm("INPUT" "as_q" "" " Internet Explorer" 0 0 0x221)
el.innerText="macro"
el=htm("INPUT" "as_epq" "" " Internet Explorer" 0 3 0x221)
el.innerText="quick macros"
el=htm("SELECT" "num" "" " Internet Explorer" 0 0 0x221)
MSHTML.IHTMLSelectElement elsel=+el; elsel.selectedIndex=3
el=htm("INPUT" "Google Search" "" " Internet Explorer" 0 2 0x421)
el.click


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)