Shoutbox

Keeping chat sessions open forever - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Keeping chat sessions open forever (/showthread.php?tid=75361)

Keeping chat sessions open forever by sock on 06-15-2007 at 02:10 AM

Say I wanted to keep a chat session alive forever (don't ask why :chrongue:). How would I do that exactly? (-:

I obviously need to send some data to the remote contact every now and then. I managed to do this by sending some meaningless message. (Well, I made dt write the initial code. :$) That works great, but it's rather annoying to send random messages all the time. I want to send some other traffic that is less obtrusive.

The obvious solution is sending an artificial "user is typing" thingie. So I tried modifying "wnd.EditText" to simulate typing, but realized that it bypasses Messenger's keyboard input detection, and thus doesn't work. (I just found out that someone else has tried it too and failed.)

So what do I do? :cry: Any help will be much appreciated. (&)

Thanks! :zippy:


RE: Keeping chat sessions open forever by -dt- on 06-15-2007 at 02:19 AM

dt made what now? :P


RE: Keeping chat sessions open forever by sock on 06-15-2007 at 02:35 AM

Err... what? o_O Wasn't my original post clear enough? :P

Why are you asking me questions, I'm the one who needs help here! :'(


RE: Keeping chat sessions open forever by sock on 06-15-2007 at 09:08 PM

... So I managed to get this far:

code:
var hWnd = wnd.Handle;
var WM_CHAR = 0x102;
var dot = 0x2E;

Interop.Call("user32", "SendMessage", hWnd, WM_CHAR, dot, 0);
Does anyone happen know why it isn't doing anything? :'(