What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Away Message - Help or Suggestions Please

Away Message - Help or Suggestions Please
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Away Message - Help or Suggestions Please
This idea may work. If you need actual codes, just post :p

This involves using Messenger API. Consult Messenger API help for related functions and how to add reference to Messenger API in C++ or Visual Basic. (Messenger API is included in Patchou's plug-in development zipfile)

This following applies for C++.
  1. Retrieve IMessenger3 interface from iMessengerObj in Plus!'s plug-in Initialize() function.
  2. When the event is fired, use IMessenger3's InstantMessage method and open a conversation window to a random contact (note: if the contact is not on your allow list, this will fail.).
  3. Use the ppMWindow in InstantMessage: Get ppMWindow's hWnd (ppMWindow's a IDispatch which you can use to retrieve IMessengerWindow, and then use get_HWND method), and use SetForegroundWindow to make it the foreground window.
  4. Now, use SendInput or keybd_event or even SendMessage to emulate keyboard input of "/away [message]". Don't forget to send Enter input.
  5. Close ppMWindow using its Close method.

And this is for VB.
  1. Get a MessengerAPI.Messenger from oMessenger in Plus!'s plug-in Initialize() function.
  2. When the event is fired, use MessengerAPI.Messenger's InstantMessage method and open a conversation window to a random contact (note: if the contact is not on your allow list, this will fail.).
  3. Use the the return value (a MessengerAPI.MessengerWindow) of InstantMessage: Get its HWnd property, and use SetForegroundWindow API to make it the foreground window.
  4. Now, use SendKeys or even SendMessage API to emulate keyboard input of "/away [message]". Don't forget to send Enter input.
  5. Close the conversation window using its Close method.

A little bit complicated, but that's what I can think of for now. Just give it a try if you want ;)

This post was edited on 06-09-2005 at 11:32 AM by Mnjul.
06-09-2005 11:20 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:05 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:20 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:21 AM
RE: Away Message - Help or Suggestions Please - by Millenium_edition on 06-09-2005 at 11:22 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:25 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:33 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:35 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 11:48 AM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 11:56 AM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:13 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:17 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:23 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:32 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:39 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:43 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 12:48 PM
RE: Away Message - Help or Suggestions Please - by XM4ST3RX on 06-09-2005 at 12:54 PM
RE: Away Message - Help or Suggestions Please - by Yousef on 06-09-2005 at 02:34 PM
RE: Away Message - Help or Suggestions Please - by Mnjul on 06-09-2005 at 02:38 PM
RE: RE: Away Message - Help or Suggestions Please - by Yousef on 06-09-2005 at 02:42 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