11-17-2016, 06:45 AM
Can get HTML only from IE and Firefox.
You can use accessible objects. Find the common parent, get all its children...
Macro Macro167
You can use accessible objects. Find the common parent, get all its children...
Macro Macro167
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"