[help] Active ChatWnd - 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: [help] Active ChatWnd (/showthread.php?tid=71056) [help] Active ChatWnd by LifelesS on 01-26-2007 at 02:26 PM
Hi, I'm building a script and on there's a point where you have a PlusWnd and when you click on a button it writes something on the ChatWnd. The problem is that I can't do it. code:[/code] RE: [help] Active ChatWnd by Felu on 01-26-2007 at 02:38 PM
To get the handle of Active ChatWnd we can use FindWindowW code: By this way you get the handle of the ChatWnd(ChatWnd.Hnadle) and not the chatwnd . RE: [help] Active ChatWnd by Matti on 01-26-2007 at 02:39 PM
You don't have the ChatWnd declared. Can you tell us in which chat window the script should send the message? RE: [help] Active ChatWnd by LifelesS on 01-26-2007 at 02:40 PM
Gonna try it Felu; RE: [help] Active ChatWnd by Matti on 01-26-2007 at 02:47 PM Well, the thing is that the chat window can't be on the foreground when you click your control in the PlusWnd. RE: [help] Active ChatWnd by LifelesS on 01-26-2007 at 02:49 PM
It doesn't work Felu, thanks for you help RE: [help] Active ChatWnd by Felu on 01-26-2007 at 02:51 PM
quote:I never said that it would return the object ChatWnd. It will return the handle of the last active chat wnd. RE: [help] Active ChatWnd by CookieRevised on 01-26-2007 at 02:54 PM
I suggest to not do what Felu suggested, at first that is. As this will more than likely lead to errors and possible wrong windows (eg: take in account that there can be more than 1 chat window open, that the first found window is not the top-most chat window, that chat windows can even belong to other Messenger sessions (polygamy), etc etc)) RE: [help] Active ChatWnd by LifelesS on 01-26-2007 at 02:58 PM I'm using other way, I'm going to replace the text you write instead of having to press a button to write the text. RE: RE: [help] Active ChatWnd by vikke on 01-26-2007 at 03:30 PM
quote:It should not work with tabs, as MessengerPlus! creates another window class for tabbed chats. GetForgroundWindow API might work |