PDA

View Full Version : Sound on private message


THO=VX9=
22-06-2004, 01:55
My goal is to have TS make a sound when I receive a private message from another player.
I am somewhat of a beginner in Delphi, but from what I can see, the only two functions that deal with private messages are either ones sent to all or to a channel.

So before I put more effort into it, perhaps someone here who is more experienced could let me know whether my goal is attainable or not..


One of our clan members is deaf, so they use TS private messages alot, but they can often get lost... I'm hoping to make things a bit easier for them to communicate.. that is the motivation behind this.

Kabukiman
22-06-2004, 08:14
You could get a Handle to the TS-Client-Window, then get a Handle to the MultiLine-Edit (could be a RichText-Edit, not sure) and use a Timer to count the Lines in there every X Seconds.

If the Line-count increased, check if the Message is for your user and if yes, play your sound/do whatever.

No need for the SDK if you use this method...

I am thinking about displaying the "XXX left" or "XXX joined" Messages in my Tool, and that would be my first guess on about how to do it...

THO=VX9=
23-06-2004, 14:49
Thanks for the reply!