07-04-2016, 10:02 AM
Hmm I cant seem to get it to work
Macro Macro2
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?
Macro Macro2
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?