Results 1 to 9 of 9

Thread: SendMessage

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521

    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

  2. #2
    Megatron
    Guest
    Yes, you need to use AddressOf to callbacks.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521
    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)

  4. #4
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    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)

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521
    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...

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  7. #7
    Megatron
    Guest
    I don't have AIM, so I cannot test this, but couldn't you just send the WM_GETTEXT message?

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521
    AIM crashes at 64,001 characters. That's why I would need EM_STREAMOUT.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521
    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
  •  



Click Here to Expand Forum to Full Width