dupa

Author Topic: can someone create a "NEW" news plug in for Hal users ???  (Read 20087 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #15 on: August 04, 2012, 10:52:57 am »
i did a google search on freeware newsreaders and am seeing what i can find but still am interested in a direct link to that site you mentioned .
https://www.google.com/search?q=freeware+news+reader+software+&sugexp=chrome,mod=12&sourceid=chrome&ie=UTF-8

i also found this page
Newsreaders & RSS Readers
http://download.cnet.com/windows/newsreaders-and-rss-readers/

but from what i am reading it sounds like it just puts a toolbar? with the rss feed of news going on it ??
I need a tutorial if easy enough to understand exactly how it works and how to make the paths , i can see part of that from DeWitts plug in .
« Last Edit: August 04, 2012, 11:00:10 am by lightspeed »
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #16 on: August 04, 2012, 11:09:05 am »
i also found this on youtube
http://www.youtube.com/watch?v=fLJxbqzSGF4
How to Submit RSS Feed Automatically with this Awesome Software Free download 2012

and this :

http://www.youtube.com/watch?v=PTXnmMlipmo&feature=related
How To Make An RSS Feed

I just found out i can add rss news feed to chrome .

« Last Edit: August 04, 2012, 11:28:45 am by lightspeed »
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #17 on: August 05, 2012, 09:30:31 am »
Sorry Lonnie. A Cut & Paste error while trying to help a friend set up a server.

Have corrected the link and sorry for any inconvenience.

Go down to the "How do I get a Newsreader" section then select an item at the right.

http://www.bbc.co.uk/news/10628494

« Last Edit: August 05, 2012, 05:17:35 pm by Art »
In the world of AI it's the thought that counts!

- Art -

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #18 on: August 05, 2012, 06:13:40 pm »
okay i went to that correct site and downloaded a rss newsfeed which added it to google , or should i have downloaded just the file an opened it as a text ?
what i need to know is how you have that file name working with google chrome which i have to put in the script to change it .
i have a rssxml file and opened it here is some what is in it . (maybe this is a different one , i am unsure . )


BBC News - World http://www.bbc.co.uk/news/video_and_audio/world/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa The latest stories from the World section of the BBC News web site. en-gb Sun, 05 Aug 2012 14:18:54 GMT Copyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/2/hi/help/rss/4498287.stm for terms and conditions of reuse. http://news.bbcimg.co.uk/nol/shared/img/bbc_news_120x60.gif BBC News - World http://www.bbc.co.uk/news/video_and_audio/world/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa 120 60 15 VIDEO: 'Police paraded us naked in public' Several Pakistani police have been suspended after accusations they paraded a couple naked in public. http://www.bbc.co.uk/news/world-asia-19136199#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19136199 Sun, 05 Aug 2012 13:46:40 GMT VIDEO: Festival tent collapses in flames Strong storms have caused a tent to collapse at a music festival in the village of Steenwijkerwold in the northeastern Dutch province Overijssel. http://www.bbc.co.uk/news/world-europe-19136181#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19136181 Sun, 05 Aug 2012 14:15:26 GMT AUDIO: British hostage feared beheading A British journalist who was kidnapped by Islamic militants in Syria last month has said that between "10 and 15" of his captors were British. http://www.bbc.co.uk/news/world-middle-east-19135839#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19135839 Sun, 05 Aug 2012 12:51:06 GMT VIDEO: Troops 'mass for Aleppo assault' More than 20,000 Syrian troops are massed around Aleppo, military sources say, as fighting rages for control of the country's second city. http://www.bbc.co.uk/news/world-middle-east-19134736#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19134736 Sun, 05 Aug 2012 15:30:46 GMT VIDEO: Jamaica awaits Bolt in Olympic 100m As the fastest men in the world are set to race in the 100m, expectations for a medal in Jamaica are sky high. http://www.bbc.co.uk/news/world-latin-america-19134221#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19134221 Sun, 05 Aug 2012 08:11:40 GMT VIDEO: Tsunami survivors experience Olympics Japanese children from the Tohoku region are in London for the Olympics. http://www.bbc.co.uk/news/world-19132557#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19132557 Sun, 05 Aug 2012 02:35:03 GMT VIDEO: French triple Olympic champion French triple Olympic champion Tony Estanguet speaks to David Eades about the next stage in his career. http://www.bbc.co.uk/news/world-19132558#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19132558 Sun, 05 Aug 2012 03:02:34 GMT VIDEO: Possible malaria breakthrough Scientists in Australia say they have made a breakthrough which could lead to a malaria vaccine. http://www.bbc.co.uk/news/health-19126303#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/health-19126303 Sat, 04 Aug 2012 13:08:38 GMT VIDEO: Vertical skydivers break record A group of 138 skydivers have shattered the vertical skydiving world record by flying heads-down in a massive snowflake formation in Illinois. http://www.bbc.co.uk/news/world-us-canada-19124714#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19124714 Sat, 04 Aug 2012 08:35:43 GMT VIDEO: Clashes continue in Syrian cities Heavy shelling and gunfire have continued in the Syrian cities of Damascus and Aleppo, with government forces bombarding areas where rebels are thought to be entrenched. http://www.bbc.co.uk/news/world-middle-east-19127360#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19127360 Sat, 04 Aug 2012 16:42:42 GMT VIDEO: UN helps N Koreans after floods The United Nations' World Food Programme says it is sending emergency food aid to North Korea where state media reports that 169 people have been killed after floods last month. http://www.bbc.co.uk/news/world-asia-pacific-19124720#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-pacific-19124720 Sat, 04 Aug 2012 11:22:13 GMT VIDEO: Russian UFO hunters search skies Nearly 50 Russian UFO hunters are camping on the shores of Lake Baikal as part of an expedition hoping to find evidence of UFO activity. http://www.bbc.co.uk/news/world-europe-19112919#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19112919 Fri, 03 Aug 2012 13:25:10 GMT VIDEO: Chile bans toys in children's meals A new law has come into effect in Chile banning companies from putting toys in chidren's meals in a bid to combat childhood obesity. http://www.bbc.co.uk/news/world-latin-america-19112928#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19112928 Sat, 04 Aug 2012 08:03:00 GMT VIDEO: Hijab victory for Saudi judoka The International Olympic Committee has said that Wojdan Shaherkani will now be allowed to wear a head-scarf that does not compromise her safety. http://www.bbc.co.uk/news/world-middle-east-19106721#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19106721 Fri, 03 Aug 2012 03:26:59 GMT VIDEO: Olympic 'gatecrasher' says she is sorry The woman who appeared in India's Olympic contingent in the opening ceremony has apologised for her "error of judgment". http://www.bbc.co.uk/news/world-asia-19112088#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19112088 Fri, 03 Aug 2012 12:51:55 GMT VIDEO: Gay protest at US fast-food chain Supporters of gay marriage in the US are protesting at outlets of a fast-food chain, Chick-fil-A, in response to its owner's opposition to same-sex unions. http://www.bbc.co.uk/news/world-us-canada-19123071#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19123071 Fri, 03 Aug 2012 23:13:02 GMT VIDEO: Syria rebels 'getting covert training' The Turkish military is reportedly running a covert training centre for members of the Free Syrian Army in a US airbase in southern Turkey. http://www.bbc.co.uk/news/world-middle-east-19123064#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19123064 Fri, 03 Aug 2012 22:54:37 GMT VIDEO: Mixed jobs report for US economy The US unemployment rate rose from 8.2% to 8.3% last month, as more people re-entered the workforce but failed to find a job. http://www.bbc.co.uk/news/world-us-canada-19122964#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19122964 Fri, 03 Aug 2012 22:32:20 GMT VIDEO: Essex: China’s Olympic social media base Chinese internet giant Tencent has set up quarters in Romford, Essex for the London 2012 Olympics, allowing medallists to broadcast interviews back home. http://www.bbc.co.uk/news/technology-19095499#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/technology-19095499 Thu, 02 Aug 2012 23:20:07 GMT VIDEO: Syria's rebel woman fighter Thwaiba Kanafani, a member of the Free Syrian Army, describes what is happening in the rebel training camps to the BBC's Richard Galpin. http://www.bbc.co.uk/news/world-middle-east-19117907#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19117907 Fri, 03 Aug 2012 15:22:32 GMT VIDEO: Pakistanis released by Somali pirates After 21 months being held captive by Somali pirates, seven Pakistani crew members from the hijacked ship the MV Albedo are released and reunited with their families. http://www.bbc.co.uk/news/world-asia-19112979#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19112979 Fri, 03 Aug 2012 13:28:47 GMT VIDEO: The 'cardboard workforce' of Beverly Hills A young artist of Mexican descent is placing painted cardboard figures of people around Beverly Hills to create awareness of the plight of immigrant workers in the US. http://www.bbc.co.uk/news/world-us-canada-19104829#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-us-canada-19104829 Fri, 03 Aug 2012 13:10:36 GMT VIDEO: Rare look at an illegal oil refinery The Nigerian authorities say they are clamping down on the illegal trade in crude oil, but the BBC's Will Ross found an illegal refinery. http://www.bbc.co.uk/news/world-africa-19082609#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-africa-19082609 Thu, 02 Aug 2012 00:42:03 GMT VIDEO: Verdict due in Argentina herbicide case Argentina is awaiting the verdict in a landmark case on the use of pesticides and herbicides in residential communities which could have far-reaching implications for the country's agriculture industry. http://www.bbc.co.uk/news/world-latin-america-19104060#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19104060 Fri, 03 Aug 2012 13:00:52 GMT VIDEO: Battles in Syria ahead of UN vote There has been renewed fighting in Syria ahead of a UN General Assembly vote to condemn its own failures to put an end to the unrest. http://www.bbc.co.uk/news/world-middle-east-19107651#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-middle-east-19107651 Fri, 03 Aug 2012 12:48:54 GMT VIDEO: Mr Brainwash's tour of debut UK show Mr Brainwash, otherwise known as pop artist Thierry Guetta, shows BBC News his preparations for his first solo London exhibition. http://www.bbc.co.uk/news/entertainment-arts-19076471#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/entertainment-arts-19076471 Thu, 02 Aug 2012 23:13:17 GMT VIDEO: Battle brews over Chinese herbal medicines A battle is brewing in the world of traditional Chinese medicine between those who want to standardise the industry and those who believe traditions should be preserved. http://www.bbc.co.uk/news/business-19106353#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19106353 Fri, 03 Aug 2012 00:55:01 GMT VIDEO: Typhoon kills five people in Taiwan Typhoon Saola triggers landslides and flooding in eastern Taiwan, killing at least five people and injuring 15 more. http://www.bbc.co.uk/news/world-asia-19099560#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-asia-19099560 Thu, 02 Aug 2012 15:55:28 GMT VIDEO: Under-employment increasing in US Despite an estimated 10,000 jobs being created in the US during July, unemployment rates are expected to remain unchanged when the latest jobs reports is released on Friday. http://www.bbc.co.uk/news/business-19107648#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19107648 Fri, 03 Aug 2012 07:09:22 GMT VIDEO: China's obsession with Olympic Gold At the top of the Olympic medals table it's a race between China and the US - and for the Chinese there is only one place on the podium that's worth having. http://www.bbc.co.uk/news/world-19102827#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19102827 Thu, 02 Aug 2012 22:16:04 GMT VIDEO: Petrobras set to announce results The Brazilian oil giant Petrobras is set to publish its second quarter results, amid concerns over sliding profits and share prices. http://www.bbc.co.uk/news/business-19108085#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/business-19108085 Fri, 03 Aug 2012 08:17:07 GMT VIDEO: US athletes prepare for battle The US women's track and field team has been warming up at a stadium in East London not far from the Olympic Park. http://www.bbc.co.uk/news/world-19091607#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-19091607 Thu, 02 Aug 2012 10:43:55 GMT VIDEO: Mexican wrestlers submit to patron saint Dozens of lucha libre wrestlers go on pilgramage in Mexico to ask their patron saint for protection. http://www.bbc.co.uk/news/world-latin-america-19098477#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-latin-america-19098477 Thu, 02 Aug 2012 14:23:02 GMT VIDEO: Footballer Shevchenko turns politician Retired football star Andriy Shevchenko joins Ukraine's opposition party Forward Ukraine. http://www.bbc.co.uk/news/world-europe-19099565#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa http://www.bbc.co.uk/news/world-europe-19099565 Thu, 02 Aug 2012 16:31:53 GMT
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #19 on: August 05, 2012, 06:43:16 pm »
i thought that with the news feed rss that hal would read it , i think that's how it worked before
apparently a rss news feed is just a web page that's what opens when i click on the rss news feed in the tool bar on chrome.
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #20 on: August 05, 2012, 07:39:23 pm »
OKay i found the rss news feed line that i have enstalled on google chrome and i
entered it in the remade plug in of dewitts  , i took out the other load rss lines (since if i am right i would have to be subscribed to them for them to work ) but after i tried the plug in i got the below error message .(see picture )
 
Hal script error 9 on line 2264 on column 0: subscript out of range :

i forgot what it was for checking errors their was some way to open it and count the lines , does anyone remember ??? and or is this in the Hal brain editor it'self ????
please let me know as soon as possible , thanks . :)

 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #21 on: August 05, 2012, 08:03:30 pm »
This is the test plug in i now have i did see where i had a space in front of the http part and corrected it and now got this same Hal error .


 Rem Type=Plugin
Rem Name= RSSNews-TEST
Rem Author= Bill DeWitt: REDONE BY LIGHTSPEED
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------
 
Sub OptionsPanel()
lblPlugin(0).Caption = "Say - Weather Alert - in a sentence. Requires GOOGLE CHROME"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub     


Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            NewsArray(Index) = xmlNewsItem.selectSingleNode("description").Text
            'NewsArray(Index) = xmlNewsItem.selectSingleNode("weather").Text
            Index = Index+1
        Next
GetResponse = "Fox News reports that " & NewsArray(Int(rnd()*CountNews))
End If


I am wondering if it has something to do with this :  set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
« Last Edit: August 05, 2012, 08:05:07 pm by lightspeed »
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #22 on: August 05, 2012, 08:28:32 pm »
Okay i found the editor and re downloaded the crimson editor but i need to know what i need to open to check the lines where the above error is showing .  :P
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #23 on: August 06, 2012, 05:03:14 pm »
   On this news rss plug in i am redoing i found out that ted was right (hated to admit it though lol ) but the bbc player was a seperate thing that used hapeck characters to read the rss news feeds (but don't work any more ) Anyway so since this uses the hapteck player and as of right now Hal uses a haptek player it seems like we should be able to have a plug in that would work off loading the rss news feeds an individual has downloaded (subscribed to ) . by saying the key trigger words example "TOP STORIES" , etc.

Okay i have been trying to figure things out i downloaded subscribed rss feeds to chrome google and got a "Google-readers-subscriptions xml.document . in this document in xml is this below named google-reader-news-subscrition xml  :



<?xml version="1.0" encoding="UTF-8"?>
-<opml version="1.0"> -<head> <title>customvair subscriptions in Google Reader</title> </head> -<body> -<outline title="News" text="News"> <outline title="BBC News - Home" text="BBC News - Home" htmlUrl="http://www.bbc.co.uk/news/#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa" xmlUrl="http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" type="rss"/> <outline title="Christian Science Monitor | All Stories" text="Christian Science Monitor | All Stories" htmlUrl="http://www.csmonitor.com/" xmlUrl="http://www.csmonitor.com/rss/top.rss" type="rss"/> <outline title="CNN.com - Top Stories" text="CNN.com - Top Stories" htmlUrl="http://www.cnn.com/index.html?eref=rss_topstories" xmlUrl="http://rss.cnn.com/rss/cnn_topstories.rss" type="rss"/> <outline title="MarketWatch.com - Top Stories" text="MarketWatch.com - Top Stories" htmlUrl="http://www.marketwatch.com/" xmlUrl="http://www.marketwatch.com/rss/topstories" type="rss"/> <outline title="NPR: 7AM ET News Summary Podcast" text="NPR: 7AM ET News Summary Podcast" htmlUrl="http://www.npr.org/templates/topics/topic.php?topicId=1001" xmlUrl="http://www.npr.org/rss/podcast.php?id=500001" type="rss"/> <outline title="NYT > Home Page" text="NYT > Home Page" htmlUrl="http://www.nytimes.com/pages/index.html?partner=rss&emc=rss" xmlUrl="http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" type="rss"/> <outline title="Reuters: Top News" text="Reuters: Top News" htmlUrl="http://www.reuters.com" xmlUrl="http://feeds.reuters.com/reuters/topNews" type="rss"/> <outline title="The Guardian World News" text="The Guardian World News" htmlUrl="http://www.guardian.co.uk" xmlUrl="http://www.guardian.co.uk/rssfeed/0,,1,00.xml" type="rss"/> <outline title="Top Stories - Google News" text="Top Stories - Google News" htmlUrl="http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=3" xmlUrl="http://news.google.com/?topic=h&num=3&output=rss" type="rss"/> </outline> </body> </opml>


I am not sure how this all works "But" think maybe it uses this xml page as a reference where to go to the rss feed ? I am just guessing on most of this i tried changing the create object line and put in the google-readers-subscription xml document .
maybe someone may figure it out from what i am posting if i am doing something wrong .

here is the plug in i am redoing :



Rem PLUGIN: PLUGINAREA7
HalBrain.ReadOnlyMode = False
If InStr(1,OriginalSentence, "the news",1) Then

   Dim objXMLNews
        Dim NewsArray()
        set objXMLNews = CreateObject("google-reader-subscriptions.xmlDocument.")
        objXMLNews.async = False
        objXMLNews.ValidateOnParse = false
        objXMLNews.load("http://www.foxnews.com/xmlfeed/rss/0,4313,81,00.rss")
        'objXMLNews.load("http://www.csmonitor.com/rss/top.rss")
        'objXMLNews.load("http://feeds.reuters.com/reuters/topNews" type="rss")
        'objXMLNews.load("http://www.cnn.com/index.html?eref=rss_topstories")
        Dim xmlNodeNews
        set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
        Dim xmlNewsItem
        dim strResult
        For Each xmlNewsItem In xmlNodeNews
            CountNews = CountNews+1
        Next
        ReDim NewsArray(CountNews-1)
        For Each xmlNewsItem In xmlNodeNews
            Randomize
            NewsArray(Index) = xmlNewsItem.selectSingleNode("description").Text
            'NewsArray(Index) = xmlNewsItem.selectSingleNode("weather").Text
            Index = Index+1
        Next
GetResponse = "Fox News reports that " & NewsArray(Int(rnd()*CountNews))
End If



NEWEST HAL ERROR now : ps. i also placed this document in the hal zabaware folder .
some reference pages i used : http://www.google.com/reader/view/#directory-page/0
http://download.cnet.com/Desktop-BBC-News/3000-2164_4-75724779.html
http://www.bbc.co.uk/news/10628494
http://download.cnet.com/RSS-AutoGen/3001-2164_4-75337947.html?spi=b66010d0b4fd774a7c372d60d569dad0
« Last Edit: August 06, 2012, 05:23:08 pm by lightspeed »
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #24 on: August 07, 2012, 01:38:28 am »
Hi lightspeed,

it seems you're having a little trouble with figuring out where the error code is and how to find it.
I'll do my best to try to walk you through finding where the error is in ultra Hals brain.
First thing, make sure that your notepad is set up so the wraparound is off, and the status bar is on.
The status bar will show you the line number and the column number at the lower right-hand corner of notepad.

Step one, when the error appears do nothing with the error box.
Step two, open the file in the ultra Hal directory called HalScript.dbg.
Step three, in the notepad move the cursor down until the line number equals the error line number.
Step four, move the cursor over until the column number equals the error column number.

There you have it you have found and located the error.
Now you can copy and paste the error so everyone can see it on the forum.
I highly recommend, two or three lines above it and two or three lines below it.
Sometimes you will find that the error is not even in your plug-in but the error is happening somewhere else in ultra Hals brain.
This sometimes happens because of something that is in your plug-in that is missing, and affecting subsystems in ultra Hals brain.

Sincerely, I hope I helped, but if all else fails, sit back munch on some pronouns, and drink down some adjective, and relax.

C load.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #25 on: August 07, 2012, 08:53:32 am »
Cload , thanks for posting this , i hadn't done this for a long time (i have actually done it before ) and had forgot how to .
I usually have to make txt. notes on how to do things so i won't forget . I will make a txt. file of your instructions and save them . I appreciate it and will use it when i have time , i have to take my wife to doctor appointment today . As soon as i get time will work on it and let others know what i find ,
Thanks again ! :)
 

raybe

  • Hero Member
  • *****
  • Posts: 1067
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #26 on: August 07, 2012, 10:04:24 am »
Not to add confusion and 'cloud' you can make sure that I am not. HalScript.dbg file is a temp file for finding problems but will be located in different location on the original database for complete repair to certain errors. As 'lightspeed' stated just going by memory here. Sorry if I added a problem.

raybe
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #27 on: August 07, 2012, 03:18:03 pm »
Cload i must be doing something wrong i went into the debug script area and it's highlighted but when i put the mouse over it , it just shows the options list : insert table, rename table , delete table and refresh table list , nothing opens up to use note pad . i also did this on my custom brain and hals brain same thing
. when i put the regular question into hal's debug area  "what's the news " that is to trigger the plug in , it just shows a regular response and nothing with the hal error from the plug in that i saw .
so maybe i am doing something wrong ???

 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #28 on: August 07, 2012, 03:52:19 pm »
I actually found out if you use note pad and "uncheck" word wrap it will then show line numbers and columns .
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: can someone create a "NEW" news plug in for Hal users ???
« Reply #29 on: August 07, 2012, 06:20:42 pm »
this page sounds similar to what i am trying to get working through hal .
http://newsanchormac.com/