Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read YouTube links/numbers
#7
Hmm I cant seem to get it to work

Macro Macro2
Code:
Copy      Help
int w1=wait(3 WV win("" "Chrome_WidgetWin_1"))
Acc a.Find(w1 "STATICTEXT" " subscribers" "xy=119 508[]state=0x0 0[]level=0 1000" 0x3005 3 0 "previous")
str s=a.Description
str e=a.Value
int n=val(s)
int n1=val(e)
out n1
out n

It just gives out a "0". I tried to vary it a bit with adding a.Value but the result is the same.
Maybe it doesnt work because its not a Button? For the views there is no Button unfortunately
But I think he finds the object.

One other way that might be easier could be to ctr+a the page and then work with getsel.
But I dont know how I could then extract specific parts of that text?


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)