-
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
-
Yes, you need to use AddressOf to callbacks.
-
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)
-
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)
-
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...
-
Get TweakUI from Microsoft and you can turn off that annoying blinking :D
-
I don't have AIM, so I cannot test this, but couldn't you just send the WM_GETTEXT message?
-
AIM crashes at 64,001 characters. That's why I would need EM_STREAMOUT.
-
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.... ;)