quote:
Originally posted by NorteX
woaaa... i tested the second one... if i type counter its very nice but it dont stop to send xD it sends 10000000 sentences with the AFK time xD
how can i fix this? that its only typed once?
You might want to try the updated code. After a brief look I saw that matty's code had an infinite loop in it, so I have implemented a simple workaround. When a message is sent by the user, a global variable "bOwnMessage" will be set to true for 1 second, and because of the nature of the OnEvent_ChatWndReceive event it'll immediately trigger that event. In our event, we then check the value of bOwnMessage to see whether this message was sent by the user or a contact and use that to decide whether to send a message or not.
So well, try the updated code!