List Info

Thread: Problem with UserIsTyping event and pasted text




Problem with UserIsTyping event and pasted text
user name
2007-01-23 15:39:42
I have two functions triggered by UserIsTyping and IMSent function On_UserIsTyping(msg) { sentMsg = host.InputWindowText; } function on_IMSent(msg) { // here i parse the outgoing message (sentMsg) //sentMsg is global } This works fine unless the user pastes text into the input window, in which case the sentMsg variable is null. I'm wondering if there is a better way to capture the outgoing message text. Thanks in advance. This group is for developer support. If you are having problems with the new Yahoo! Messenger with Voice client get help here: http://messenger.yahoo.com/newtoim.php Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ydn-messenger/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/ydn-messenger/join (Yahoo! ID required) <*> To change settings via email: mailto:ydn-messenger-digest@yahoogroups.com mailto:ydn-messenger-fullfeatured@yahoogroups.com <*> To unsubscribe from this group, send an email to: ydn-messenger-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: Problem with UserIsTyping event and pasted text
user name
2007-01-25 23:32:34
--- In ydn-messenger@yahoogroups.com, "marc_delagrammatikas" ...> wrote: > > I have two functions triggered by UserIsTyping and IMSent > > function On_UserIsTyping(msg) > { > sentMsg = host.InputWindowText; > } > function on_IMSent(msg) > { > // here i parse the outgoing message (sentMsg) > //sentMsg is global > } > > This works fine unless the user pastes text into the input window, in > which case the sentMsg variable is null. I'm wondering if there is a > better way to capture the outgoing message text. The msg parameter to your on_IMSent handler should contain the sent message text, even if the text was pasted. Make sure you have the IMAccess=true key in your manifest file. Otherwise, your plugin won't be able to see the IMs. I haven't been able to test it yet, but it's possible that pasting text into the message field doesn't trigger the UserIsTyping event. John This group is for developer support. If you are having problems with the new Yahoo! Messenger with Voice client get help here: http://messenger.yahoo.com/newtoim.php Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ydn-messenger/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/ydn-messenger/join (Yahoo! ID required) <*> To change settings via email: mailto:ydn-messenger-digest@yahoogroups.com mailto:ydn-messenger-fullfeatured@yahoogroups.com <*> To unsubscribe from this group, send an email to: ydn-messenger-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )