Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get webpage html from Chrome window and check for html
#2
Can get HTML only from IE and Firefox.

You can use accessible objects. Find the common parent, get all its children...

Macro Macro167
Code:
Copy      Help
out

int w=win("Chrome" "Chrome_WidgetWin_1")
Acc a.Find(w "STATICTEXT" "online now" "" 0x3001 3 0 "parent2") ;;find common parent; at first "online now" object, then its parent's parent
ARRAY(Acc) b; int i
a.GetChildObjects(b 1 "STATICTEXT") ;;get all level 1 descendants that have role "STATICTEXT"
for i 0 b.len 2 ;;0, 2, 4, ...
,str user=b[i].Name
,if(user.end(" last on: ")) user.remove(user.len-10)
,out F"{user} online"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)