|
-
Aug 31st, 2001, 12:48 PM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 31st, 2001, 01:02 PM
#2
Lively Member
he hehe, people still use AOL.
In case of a water landing, my head may be used as a flotation device.
-
Aug 31st, 2001, 01:12 PM
#3
Go to www.patorjk.com for help with your AOL programming needs.
-
Aug 31st, 2001, 01:15 PM
#4
Member
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.
-
Aug 31st, 2001, 01:23 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|