Results 1 to 5 of 5

Thread: FOr AOL ppl amoungst you's

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    Question FOr AOL ppl amoungst you's

    Hi, This is really puzzling me, as nothing i do seems to work.

    [bold]What im trying to do[/bold]
    I am trying to take the contents of an Instant Message window and copy it into my program, However the code i am using will only copy it as plain text (NOT RICH TEXT). Also it fails if the user doesn't have the IM window selected!

    So if anyone knows what im doing wrong please tell me, Thanks for any help.

    This is the code i am using at the moment it is in a timer:
    Code:
    Dim aolframe As Long, mdiclient As Long, aolchild As Long
    Dim richcntl As Long
    aolframe = FindWindow("aol frame25", vbNullString)
    mdiclient = FindWindowEx(aolframe, 0&, "mdiclient", vbNullString)
    aolchild = FindWindowEx(mdiclient, 0&, "aol child", vbNullString)
    richcntl = FindWindowEx(aolchild, 0&, "richcntl", vbNullString)
    Dim TheText As String, TL As Long
    TL = SendMessageLong(richcntl, WM_GETTEXTLENGTH, 0&, 0&)
    TheText = String(TL + 1, " ")
    Call SendMessageByString(richcntl, WM_GETTEXT, TL + 1, TheText)
    Me.Text1.Text = Left(TheText, TL)
    Thanks for any help.

  2. #2
    Lively Member
    Join Date
    Nov 2000
    Location
    Sugar Grove, IL
    Posts
    99
    he hehe, people still use AOL.
    In case of a water landing, my head may be used as a flotation device.

  3. #3
    Matthew Gates
    Guest
    Go to www.patorjk.com for help with your AOL programming needs.

  4. #4
    Member
    Join Date
    Aug 2000
    Location
    NYC
    Posts
    52
    Take a look at my (now somewhat defunct) project, IMLog. You can download the source, or browse it in CVS.

    We got it working pretty darn well, too.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    Yes, ppl still use AOL, and here in the uk there the cheapest and reasonably fast

    Thanks, ill look at your suggestions.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width