Shoutbox

Getting and setting user's status - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Getting and setting user's status (/showthread.php?tid=44059)

Getting and setting user's status by SuBlImE on 05-03-2005 at 05:14 AM

Hey everyone :)

I'm trying to make a plug-in in visual basic and can't find out how to work with the user's status. Does anyone know how to get/set the msn messenger user's status? I think it might have somethign to do with "oMessenger.IMsgrService.LocalState" but I don't really know. Thanks for your help in advance :D


RE: Getting and setting user's status by (CyBeRDuDe) on 05-03-2005 at 07:38 AM

oMessenger.MyStatus is the keyword... :D...
Use the MISTATUS Constants...
Eg: Setting your status to online would be

code:
oMessenger.MyStatus = MISTATUS_ONLINE
You have to remember that "oMessenger" would have to be replaced by the object messenger name.. :D... Of course I guess you knew this...?
If you have not set a reference to Windows Messenger/Messenger Api Type Library you can still do this, you would just need to know the integer number for the different states..
The different MISTATUS Constants and there equvilent Integer are as follows:
MISTATUS_ONLINE = 2
MISTATUS_BE_RIGHT_BACK = 14
MISTATUS_AWAY = 34
MISTATUS_BUSY = 10
MISTATUS_ON_THE_PHONE = 50
MISTATUS_OUT_TO_LUNCH = 66
MISTATUS_INVINSIBLE = 6

I am not sure if I was clear enough?.. Hope this helped you... :D...
And btw, Welcome to the forum! :D...

RE: Getting and setting user's status by SuBlImE on 05-04-2005 at 12:43 AM

Thanks cyberdude, it works perfectly :)

And thank u for the nice welcome too :)