|
-
Jun 6th, 2001, 09:37 PM
#1
Thread Starter
Fanatic Member
SendMessage
I am trying to use SendMessage(hwnd, EM_STREAMOUT, SF_RTF, EditStream)
EditStream is a structure defined as
typedef struct _editstream {
DWORD_PTR dwCookie;
DWORD dwError;
EDITSTREAMCALLBACK pfnCallback;
} EDITSTREAM;
I'm trying to recreate this in VB6, but I don't know how to store the pointer of a function in a variable (do I use AddressOf, like one does with API enumerations?).
I'm assuming that this will work with the textbox in an AIM message window.
For those interested, I am creating a program that reads the text in AIM windows, and stops their infernal blinking. I might also include a spellchecker. Basically, it will control AIM so you can selectively send fake away messages to people you don't want to talk to, without blocking them, and stuff like that. However, I can't use the GetText API because it has a limit of 64k. I need to figure out how to use the above function to do it...
Thanks in advance,
Victor
-
Jun 7th, 2001, 02:29 PM
#2
Yes, you need to use AddressOf to callbacks.
-
Jun 7th, 2001, 06:07 PM
#3
Thread Starter
Fanatic Member
Has anyone here had experience with the above function (with EM_STREAMOUT as a parameter)? I couldn't find much on the web on it... (i.e. useful examples)
-
Jun 7th, 2001, 09:07 PM
#4
Fanatic Member
You wanna control AIM?
I've been wanting to be able to record a conversation, but haven't known really how to get the text from the textbox, i did sorta figure out how to type messages, but i could only get it to send text to the type in box and a mousedown event for the button, but the mouseup didn't work so i'd have to finish the mouse up on my own (ie. using the real mouse, not my program)
-
Jun 8th, 2001, 06:22 AM
#5
Thread Starter
Fanatic Member
I figured out how to get the number of characters from an im textbox (both the one that you type in and the one you look at), which will work for telling if someone has imed you (what my program will do, is stop the window from blinking after 3 secs). However, WM_GETMESSAGE only gets messages 64k or under (as far as I know) -- I can't get EM_STREAMOUT to work. I'll make this app available to anyone who wants it when I'm done.
I'm also working on a spell-checker for AIM...
-
Jun 8th, 2001, 01:20 PM
#6
Monday Morning Lunatic
Get TweakUI from Microsoft and you can turn off that annoying blinking
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 8th, 2001, 02:42 PM
#7
I don't have AIM, so I cannot test this, but couldn't you just send the WM_GETTEXT message?
-
Jun 8th, 2001, 03:05 PM
#8
Thread Starter
Fanatic Member
AIM crashes at 64,001 characters. That's why I would need EM_STREAMOUT.
-
Jun 8th, 2001, 09:16 PM
#9
Thread Starter
Fanatic Member
WM_GETTEXT definately does not work over 64k - it just returns part of the IM. So, I'm still looking for help with EM_STREAMOUT.
Anyone?
At all?
hmmmm....
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
|