06-24-2016, 08:53 AM
Hey,
Im a new user to QM and dont have so much coding experience, so please be gentle
What I would like to have is a macro that will read out all the link (twitter, facebook) on the /about page on youtube.
Then pastes them to a .txt file and opens them in a new tab.
The macro Ive got here already does that but there is a problem when a website is used twice.
See here for e.g. youtube.com/user/M3RKMUS1C/about
The user has put 2 twitter links, now I will only get the first one. How can I get both links?
Macro Youtube links
Another thing I would like to do is to get the subscriber / total views number.
Problematic here is that its not always the same amount of numbers (e.g. 10.000 vs 1.000.000 subscribers).
How can I get started here?
Thanks!
Im a new user to QM and dont have so much coding experience, so please be gentle

What I would like to have is a macro that will read out all the link (twitter, facebook) on the /about page on youtube.
Then pastes them to a .txt file and opens them in a new tab.
The macro Ive got here already does that but there is a problem when a website is used twice.
See here for e.g. youtube.com/user/M3RKMUS1C/about
The user has put 2 twitter links, now I will only get the first one. How can I get both links?
Macro Youtube links
int w=act(win("" "Chrome_WidgetWin_1"))
lef 141 9 w 1 ;;Text ''
Acc a.Find(w "DOCUMENT" "" "" 0x3010 2)
ARRAY(Acc) aa; int i
a.GetChildObjects(aa -1 "LINK" "Facebook")
for i 0 aa.len
,Acc& r=aa[i]
,str name=r.Name
,str url=r.Value
,out "%-35s %s" aa[i].Name aa[i].Value
a.GetChildObjects(aa -1 "LINK" "Twitter")
for i 0 aa.len
,Acc& b=aa[i]
,str url2=b.Value
for i 0 aa.len
,Acc& b2=aa[i]
,str url22=b.Value
a.GetChildObjects(aa -1 "LINK" "Twitch")
for i 0 aa.len
,Acc& d=aa[i]
,str url4=d.Value
a.GetChildObjects(aa -1 "LINK" "Instagram")
for i 0 aa.len
,Acc& c=aa[i]
,str url3=c.Value
int w1=act(win("test - Editor" "Notepad"))
lef 313 17 w1 ;;Titelleiste
paste (url)
' Y
paste (url2)
' Y
paste (url3)
' Y
paste (url22)
run (url)
run (url2)
run (url3)
run (url4)
Another thing I would like to do is to get the subscriber / total views number.
Problematic here is that its not always the same amount of numbers (e.g. 10.000 vs 1.000.000 subscribers).
How can I get started here?
Thanks!