Solved

Whats wrong with this code? MsAgent

Posted on 2001-08-27
4
149 Views
Last Modified: 2010-04-06
The code below makes my Agent whisper the I am whiapering
But when i try to make it whisper a Variable that contains Text he  wont do it, the variable is sSource
no matter how i try it the Agent whispers the words sSource
and not the words in th sSource variable
any ideas on this one
*smiles*





myAgent.Speak('\Chr="Whisper"\I am Whispering', '');
0
Comment
Question by:neopolis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 6

Expert Comment

by:edey
ID: 6429136
listening

GL
Mike
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 6429525
Wouldn't be easier to make your own string to pass For example:

MSG:STRING;
msg:='\Chr=+QuotedStr(Whisper)+'\'+sScode';
myAgent.Speak(msg, '');


---Just a thought.

Good luck!!
0
 
LVL 2

Accepted Solution

by:
RickHalle earned 10 total points
ID: 6430223
You could do something like this also.

const Whisper = '\Chr="Whisper"\';
begin
  sSource:='I am Whispering';
  myAgent.Speak(Whisper + sSource, '');
end;

Rick Halle
0
 

Author Comment

by:neopolis
ID: 6430708
cool had to make a couple of small changes but it works
thanks...*smiles*
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question