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:
Nichol
Junior Member
**


Posts: 17
Joined: May 2004
O.P. Plugin Request: Auto-Restoring Conversation Windows
Any chance someone could code a plugin that makes newly created conversation windows automatically restore/maximise? It might seem like an insignificant feature to want, but I personally think this would be great.
03-19-2005 05:13 PM
Profile E-Mail PM Find Quote Report
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
Nichol
Junior Member
**


Posts: 17
Joined: May 2004
O.P. RE: Plugin Request: Auto-Restoring Conversation Windows
Thanks for the reply.

Anyone care to make this into a usable plugin? :)
03-19-2005 06:42 PM
Profile E-Mail PM Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
RE: Plugin Request: Auto-Restoring Conversation Windows
I would love to I just don't know how :'( where can we learn to program? like fastly..??
03-20-2005 12:13 AM
Profile E-Mail PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Plugin Request: Auto-Restoring Conversation Windows
I'll give it a try. :o

Cyberdude should do it, though.

Edit: in VB6, it worked for a second and then it stopped. I'll try with VB.net (though, it's difficult as hell to make it work :sad:).

This post was edited on 03-20-2005 at 12:27 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

03-20-2005 12:15 AM
Profile PM Find Quote Report
Nichol
Junior Member
**


Posts: 17
Joined: May 2004
O.P. RE: Plugin Request: Auto-Restoring Conversation Windows
Hope someone gets it working. Please reply if you do.
03-20-2005 09:11 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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