What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Plugin Request: Auto-Restoring Conversation Windows

Plugin Request: Auto-Restoring Conversation Windows
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Plugin Request: Auto-Restoring Conversation Windows
'Being the bored person I am I made a small example. This is the code in Visual Basic on how you would do it. I just don't have the time to make it a plugin.
'Make sure to set a reference to the MessengerAPI Type Library


Public WithEvents MessengerAPI As MessengerAPI.Messenger
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Const SW_NORMAL = 1
Public Const SW_MINIMIZE = 6
Public Const SW_MAXIMIZE = 3
Public Const SW_SHOWNOACTIVATE = 4

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger
End Function

Private Sub MessengerAPI_OnIMWindowCreated(ByVal pIMWindow As Object)
    Dim IMWindow_Interface As IMessengerConversationWnd
    Set IMWindow_Interface = pIMWindow
   
' This will show the window normally with focus
    ShowWindow IMWindow_Interface.hWnd, SW_NORMAL
' This will maximize the window
    ShowWindow IMWindow_Interface.hWnd, SW_MAXIMIZE
' This will minimize the window
    ShowWindow IMWindow_Interface.hWnd, SW_MINIMIZE
' This will minimize the window
    ShowWindow IMWindow_Interface.hWnd, SW_MINIMIZE
' This will show the window normally without gaining focus
    ShowWindow IMWindow_Interface.hWnd, SW_SHOWNOACTIVATE
End Sub
03-19-2005 05:42 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Plugin Request: Auto-Restoring Conversation Windows - by Nichol on 03-19-2005 at 05:13 PM
RE: Plugin Request: Auto-Restoring Conversation Windows - by matty on 03-19-2005 at 05:42 PM
RE: Plugin Request: Auto-Restoring Conversation Windows - by Nichol on 03-19-2005 at 06:42 PM
RE: Plugin Request: Auto-Restoring Conversation Windows - by albert on 03-20-2005 at 12:13 AM
RE: Plugin Request: Auto-Restoring Conversation Windows - by L. Coyote on 03-20-2005 at 12:15 AM
RE: Plugin Request: Auto-Restoring Conversation Windows - by Nichol on 03-20-2005 at 09:11 AM


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