What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Invoke first personalised status

[?] Invoke first personalised status
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [?] Invoke first personalised status
quote:
Originally posted by SpunkyLoveMuff
It was working part of the time ^o) I think it works now as long as the CL is not minimized/closed
With using my example code: when the contactlist is closed there is no contactlist window to get the handle from and thus not a window to send the message to. So obviously that wont work; the contactlist needs to exist (it can be minimized though)....

because of:
  Interop.Call('User32', 'PostMessageW', Messenger.ContactListWndHandle, WM_COMMAND, wParam, lParam);


-

If you don't want to depend on Plus! to get the handle of the contactlist window (thus by using the Messenger.ContactListWndHandle property) you can also send the WM_COMMAND to the hidden Messenger window. But again, you of course need to get the handle to that window in order to send the message.

But beware if you use felipEx's example code. That wont work properly when you have more than one Windows Live Messenger running (polygamy).

See here and/or here for a short solution to get the handle to the MSNHiddenWindowClass window of the Windows Live Messenger client the code is running in.

If you don't do that, you might/will end up changing stuff in the other Messenger client (and thus in the other Messenger accounts)...

;)

This post was edited on 02-20-2008 at 11:29 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-20-2008 10:57 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Invoke first personalised status - by Spunky on 02-18-2008 at 10:29 PM
RE: [?] Invoke first personalised status - by felipEx on 02-20-2008 at 01:08 AM
RE: [?] Invoke first personalised status - by Spunky on 02-20-2008 at 04:42 PM
RE: [?] Invoke first personalised status - by CookieRevised on 02-20-2008 at 10:57 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