?
Solved

Whats wrong with this code? MsAgent

Posted on 2001-08-27
4
Medium Priority
?
150 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 40 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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