Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find in HTML page, move mouse and click it
#1
Hello,

I have a string, what i want is to search for it in an Webpage, if it's found i want the URL be clicked/copied.

Any ideas on how to manage this?

Example:

Str test="find this"
Webpage to search in: http://www.test.com/testpage.htm
Search for the string test in this page and copy the URL/click it with a left button

TIA
#2
Use accessible object functions. Look for dialogs in the floating toolbar.

example
Macro Macro1966
Code:
Copy      Help
str test="test"
int w=wait(3 WV win("Firefox" "Mozilla*WindowClass" "" 0x4))
Acc a.FindFF(w "A" test "" 0x1000 3)
str url=a.Value
out url
url.setclip ;;copy to clipboard
a.Mouse(1) ;;click


Forum Jump:


Users browsing this thread: 1 Guest(s)