"Finding the Chat window"

Finding The Chat window is Pretty Simple, To Do it you must Go Through Each
Child Window,  looking for three Controls By Classname _AOL_Listbox, 
_AOL_View, and _AOL_Edit. This is how you do it.

Step 1  -- Get the AOL Window,  This is done by using Findwindow

AOLhwnd%=FindWindow("AOL Frame25",0&) ' This will find the Window no matter
                                      ' What the Caption is, This is 
                                      ' Necessary Because the AOL Caption
                                      ' Changes

Step 2  -- Find the  MDI Client in The AOL Window

This  is done by Using a  DO Loop, Getwindow, and GetClassName. Exp.


Childhwnd%=Getwindow(AOLhwnd%, GW_CHILD)

  Do

     X=GetClassname(Childhwnd%,RetStr$,255)  
     
       If Instr(RetStr$,"MDIClient")  Then
         
         MDIhwnd%=Childhwnd%
         Exit Do

       End If

 Childhwnd%=GetWindow(Childhwnd%,GW_HWNDNEXT)
  
 Loop Until Childhwnd%=0

In this Example, The First  Statement Gets the First Child  window Found
in the AOL Window. Then, It Gets the ClassName, Compares it by looking for
MDIClient, The Classname for the MDI Client in AOL. If it finds it it  sets 
MDIhwnd% to the Handle of the current Window, which would be the MDI Client
and exits The Loop. If it  does not find the MDI Client in this window, it
Get's  the Next  Child window until  either it finds the MDI Client  or 
Runs  out of Child Windows.

Step  3  -- Cycle through all the Child windows, Using a DO LOOP and Then

Doing a Nested  DO LOOP, Looking for All the Controls I listed above.  The
Coding is too long for me to write  it   out here,  But Use the examples of
Getting  the MDIClient to  help  you figure it out. Once you DO find the 
Chat window.  Put the  Handle  in a Varible and your set!

Written By DiVe PiE
