I just started playing around with the speech macros today and can not get the
weather one to speak the weather. It speeks the "OK" but nothing after that (no
errors either).
It seems to be hung up on the xml_doc.load() call. The Url is OK.
I tried adding a try/catch to get additional info about the error but it is not
getting caught.
This is the segment of code from the macro:
<command>
<listenFor>Tell me the weather forecast for [CityName]</listenFor>
<speak>OK</speak>
<script language="JScript">
<![CDATA[
var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("http://www.rssweather.com/zipcode/{[Spoken.CityName.zipCode]}/rss.\
php");
var titles = xml_doc.getElementsByTagName("title");
var descriptions = xml_doc.getElementsByTagName("description");
Application.Speak(titles.item(2).text + " in {[*CityName]}");
Application.Speak(descriptions.item(2).text);
]]>
</script>
</command>
Ultimately, I'd like to do some home automation like having the PC control an IR
emitter to control my entertainment center.
Thanks,
Gary Davis