What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Temporarily remove desktop contacts

Temporarily remove desktop contacts
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Temporarily remove desktop contacts
If anyone wants to do this here is VB6 Code that will do so.

code:
Public Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Const SW_HIDE = 0
Public Const SW_NORMAL = 1
Public NumOfFloatingWindows As Long
Public Floating_hWnd() As Long
Public Function CallBack(ByVal hwnd As Long, ByVal lpData As Long) As Long
   Dim lResult As Long
   Dim sWndName As String
   Dim sClassName As String
   Dim nWindowHandle As String
   CallBack = 1
   sClassName = Space(260)
   sWndName = Space(260)
   lResult = GetClassName(hwnd, sClassName, 260)
   sClassName = Left$(sClassName, lResult)
   lResult = GetWindowText(hwnd, sWndName, 260)
   sWndName = Left$(sWndName, lResult)
   If LCase$(sClassName) = "msgplusfloatingwindow" Then
       ReDim Preserve Floating_hWnd(NumOfFloatingWindows)
       Floating_hWnd(NumOfFloatingWindows) = FindWindow("msgplusfloatingwindow", sWndName)
       ShowWindow Floating_hWnd(NumOfFloatingWindows), SW_HIDE
       NumOfFloatingWindows = NumOfFloatingWindows + 1
   End If
End Function
Public Function HideFloatingWindows() As Boolean
   Dim hwnd As Long
   EnumWindows AddressOf CallBack, hwnd
End Function
Public Function ShowFloatingWindows()
   For j = NumOfFloatingWindows - 1 To 0 Step -1
       DoEvents
       ShowWindow Floating_hWnd(j), SW_NORMAL
   Next
End Function


to hide the windows
code:
HideFloatingWindows

and to show them
code:
ShowFloatingWindows
08-24-2005 02:49 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Temporarily remove desktop contacts - by aC23 on 08-21-2005 at 01:45 AM
RE: Temporarily remove desktop contacts - by Val on 08-21-2005 at 02:49 AM
RE: Temporarily remove desktop contacts - by cardshark on 08-24-2005 at 12:06 AM
RE: Temporarily remove desktop contacts - by uberdosis on 08-24-2005 at 12:33 AM
RE: Temporarily remove desktop contacts - by ShawnZ on 08-24-2005 at 12:46 AM
RE: Temporarily remove desktop contacts - by Concord Dawn on 08-24-2005 at 12:48 AM
RE: RE: Temporarily remove desktop contacts - by CookieRevised on 08-24-2005 at 02:29 AM
RE: Temporarily remove desktop contacts - by matty on 08-24-2005 at 02:49 AM
RE: Temporarily remove desktop contacts - by CookieRevised on 08-24-2005 at 03:59 AM
RE: Temporarily remove desktop contacts - by Fergy on 08-24-2005 at 06:44 AM
RE: Temporarily remove desktop contacts - by CookieRevised on 08-24-2005 at 06:46 AM
RE: Temporarily remove desktop contacts - by Fergy on 08-24-2005 at 06:53 AM
RE: Temporarily remove desktop contacts - by aC23 on 08-24-2005 at 04:11 PM
RE: RE: Temporarily remove desktop contacts - by CookieRevised on 08-24-2005 at 06:03 PM
RE: Temporarily remove desktop contacts - by aC23 on 08-25-2005 at 01:18 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