Shoutbox

Opening conversation windows automatically - 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: Opening conversation windows automatically (/showthread.php?tid=50520)

Opening conversation windows automatically by Alfa_Romeo on 09-15-2005 at 12:42 AM

Ok, I'm creating my first ever plugin for Plus! and I was doing fine, but I've come across a problem now. :S

My plugin is supposed to open a conversation window automatically with users from a list created when configuring the addon.  The list is fine, and I've managed to open conversation windows automatically when a user changes their status to online, or when I change my own status to online.  However, I can't seem to find a way to open the windows when: A. I first log on, and B. Other users first log on.

I tried using the OnSignIn event but it didn't open the windows, and I've got no clue how to find if a user has just logged on inside a dll.

First person to help me with this successfully gets to beta test when it's done! :D:P

EDIT: In VB6 btw.
EDIT2: it appears that it does actually work when another user signs in while testing, I just need it to work when I sign in now.
EDIT3: Ok, it appears that sometimes the DLL tries to initialize before I've logged in on to msn, and unfortunately it detects my status change (I think) and messes up msn, causing it to close before signing in fully.  So I also need a way to pause this until I'm logged in fully.


RE: Opening conversation windows automatically by RaceProUK on 09-15-2005 at 11:58 AM

You'll need to add a check to see if you're signed in. The MISTATUS enumeration contains many values, so you'll need to use OnMyStatusChange() until you detect MISTATUS_ONLINE.

Tip: Use a bitwise AND to see if online, as all online-type statuses have bit 2 set.
In the latest Plus! API package, there's a Help file for the Messenger API.


RE: Opening conversation windows automatically by Alfa_Romeo on 09-15-2005 at 07:56 PM

Thanks for the reply, I'll see if this helps. :)


RE: Opening conversation windows automatically by RaceProUK on 09-15-2005 at 08:26 PM

I just read your first post again - using the OnSignin event should work :S


RE: Opening conversation windows automatically by Alfa_Romeo on 09-15-2005 at 10:38 PM

Well, when I use that msn will shut down if the messenger window is open.  Not sure why, because msn opens fine if it's just in the tray.

I'm going to try to work on it a bit right now and see what I can come up with.