This post was moved to the Macros and Macro Development Forum by the Administrator
---------------------------------------------------------------------------------------------------------------------
Hello All!
Im just getting started to dig my teeth into what WSR can do and I must say Im pretty excited. But I often put my cart before my horse (or goat in some cases) and I have a few, what I hope to be, quick questions for any WSR gurus that may be about.
1. In the WDR users manual it states that ActivePearl code can be used, but I havent seen any documentation supporting this claim. Is this true?
2. I edited an example provided on this website to create a macro that tells me the time when asked. The macro works well but when speaking the time it says 11 hours 34 min 19 sec pm instead of 11 34 pm. Anyone know how to correct this?
Here's my code;
<?xml version="1.0" encoding="UTF-16"?> <speechMacros> <command> <listenFor>Time</listenFor> <listenFor>Give me the Time</listenFor> <listenFor>What is the time</listenFor> <listenFor>Tell me the time</listenFor> <listenFor>What time is it</listenFor> <script language="vbscript"> <![CDATA[ dim currentTime currentTime = FormatDateTime(Time(), 1) Application.Speak Time Application.SetTextFeedback Time ]]> </script> </command>
3. How would I go about getting WSR to read data from websites(HTML)? I have downloaded modified and used the CheckWeather Maco to read from rss feeds, but what about websites that dont offer such feeds? Can this be done?
http://www.rctheatres.com/a1website.asp?house_id=8764 This is the website Id like read from
I would like the titles of the movies and showtimes to be read
If anyone is willing, a well commented example would be ideal as I would like to edit this example to include future ideas, such as asking for showtimes on certain dates. Ultimately I would like to ask "Whats Playing" then get a list of just titles that are playing today spoken in reply. I would then speak one of these titles to get more information about the movie. Im not asking anyone to write this all out for me, I just would like to be pointed in the right direction. If there are other examples that would explain this to me available I will happily accept a link and will take it from there.
If this task seems too daunting I believe I could get what I need from an example that reads the David Letterman top ten list.
http://www.cbs.com/latenight/lateshow/top_ten/ Link to top ten list
|