I have a script that Rupp helped me with years ago that announces the headline news as I get ready for work in the morning. The device now populates with way more news story then I want to hear. Can this script be modified to announce only the first 10?
PHP Code:
sub main()
hs.Speak "The news from C N N", TRUE
FirstSplit = Split(hs.DeviceString("v11"), "<br><br>")
For i = 0 To UBound(FirstSplit) - 1
NewsSplit = Split(FirstSplit(i), ">")
sFinalNewsSplit = Replace(NewsSplit(1), "</a", "")
hs.Speak sFinalNewsSplit, TRUE
hs.WaitSecs 1.5
Next
end sub
Comment