Print Page | Close Window

Active Pearl Code

Printed From: MSSpeech-Forum
Category: Windows™ Speech Recognition Forums
Forum Name: Macros and Macro Development
Forum Description: WSR Macros, Tools, Files, and new Macro requests
URL: https://www.msspeech-forum.com/forum_posts.asp?TID=185
Printed Date: 15/Dec/2024 at 8:51pm
Software Version: Web Wiz Forums 12.02 - http://www.webwizforums.com


Topic: Active Pearl Code
Posted By: Gherkin
Subject: Active Pearl Code
Date Posted: 06/Sep/2010 at 6:26pm
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



Replies:
Posted By: Gherkin
Date Posted: 19/Sep/2010 at 3:55am
Wow no ideas at all huh? Well At least I check the site everyday... DeadCensoredDead



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.02 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net