Zabaware Support Forums
Zabaware Forums => Ultra Hal 7.0 => Topic started by: echoman on September 19, 2005, 02:27:31 pm
-
Hello
How do I get Hal to give me the weather/news in uk. It seems stuck on Us?
Thanks
-
I don't know if the zabaware service include weather news for UK. Anyway you can bypass the problem easily.
I live in Italy (which is not available on zabaware site), so I have put these lines in the file mywebhal.uhp:
'------------------
' weather
If InStr(1, UserSentence, "Weather", 1) > 0 Then
GetResponse = "Here is your local weather. <RUN>http://www.arpalombardia.it/meteo/bollettini/bolmet.htm</RUN>"
End If
You can insert in the RUN command a link to a UK wather site.
I think that http://uk.weather.com/index.html is the best.
Bye
-
Hello,
Of course! That is very easy thankyou. I will change the news site too. At last I seem to be getting the hang of Hal.
Bye.
Echo
-
on a similar subject, I am trying to use mywebHal.uhp to open a specific site. Unfortunately, when UltraHal outputs the GetResponse to the web-browser, he changes the URL to all lower case. The site I am trying to connect to is apparently case-sensitive. Here's the code I inserted (the forum changes part of it to a hyperlink, ignore that):
If InStr(1, UserSentence, "check transit west", 1) > 0 Then
GetResponse = "Opening westbound Tri-met.<RUN>http://www.trimet.org/arrivals/tracker.html?locationID=363&submit3.x=0&submit3.y=0</RUN>"
End If
That "locationID" in the middle of the link won't work as "locationid". Does anyone know if there's a way to allow the URL to be run "as is", without changing the case? {I'm using free version5 with xtf 1.2}
-
Try creating a Bat file with the name of the site you want to open in it then have hal run the bat.
Who knows?
Bill
-
Thanks Bill, I tried making the batch file but my programming skills are minimal; I was able to start the browser but I didn't know how to pass the URL to it, heh. But then it struck me that I could just create a shortcut to the website I want and run that in mywebhal.uhp instead of the URL itself. Problem solved!