What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] Active ChatWnd

[help] Active ChatWnd
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [help] Active ChatWnd
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))

Do as Mattike suggested and add a logical way to retrieve in what chat window you want to write something (by the use of a global variable for example like he suggested).

If this isn't possible at all, then you could do a manual search for chat windows. But use the chatwnds enumeration object and not the findwindow api!!!. And in each enumeration you check the Z-order of the window handle with a windows API, the lowest one (aka the top-most), or was it the biggest one.. dunno anymore :p, is the one you need.

PS: And do not forget to check if you actually can edit/write something to the chat window before you actually write or manipulate the cursor!

This post was edited on 01-26-2007 at 02:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-26-2007 02:54 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] Active ChatWnd - by LifelesS on 01-26-2007 at 02:26 PM
RE: [help] Active ChatWnd - by Felu on 01-26-2007 at 02:38 PM
RE: RE: [help] Active ChatWnd - by vikke on 01-26-2007 at 03:30 PM
RE: [help] Active ChatWnd - by Matti on 01-26-2007 at 02:39 PM
RE: [help] Active ChatWnd - by LifelesS on 01-26-2007 at 02:40 PM
RE: [help] Active ChatWnd - by Matti on 01-26-2007 at 02:47 PM
RE: [help] Active ChatWnd - by LifelesS on 01-26-2007 at 02:49 PM
RE: [help] Active ChatWnd - by Felu on 01-26-2007 at 02:51 PM
RE: [help] Active ChatWnd - by CookieRevised on 01-26-2007 at 02:54 PM
RE: [help] Active ChatWnd - by LifelesS on 01-26-2007 at 02:58 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On