quote:
Originally posted by CookieRevised
MrT,
To add to what phalanxii has said: you need to take into consideration that several contacts can talk to you at the same time. And that a user could want to imitate a contact who hasn't spoken last.
So only storing the last text parameters from the last contact who spoke to the user is not going to work. Do as phalanxii suggested: use an array to store the information, indexed by the contact's email _and_ by the user's email(**). And remove the array element when the chat window of that contact is closed(***).
** highly important if you don't want to screw things up when the current user signs out and a new user sign in. Another way around this and probably much more convenient in this case: empty the array when the user signs out.
*** be carefull. There can be multiple contacts in 1 chat window (multi-contact or group chats).
PS: without looking at the code: I can't see the use of my "typing notifier" code in this script though.
quote:
Originally posted by phalanxii
I haven't tried this, but perhaps to get around "Bug 1", you can save the font color, type and style for each person.
For example (sorry, I looked through the code ), bir, iki and uc could all be made into arrays, and the font information can be stored in each element, ie. bir[contact@domain.com] or iki[123456789] (user ID). Then when you send the message, you check who you are sending it to, and access the font information using that.
thanks for help.
i use window handle but it doesn't work in group chats.it only work 1-1 chat