Thread: AIM IM text?

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question AIM IM text?

    I am making my first AIM chat proggie. I need to know how to get the full chat text of what has been said from the IM window. I have the key sending but how do I do this?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Are you using Winsock to do this? I'm not too familiar with Winsock, but you can just send when the user presses a button (or for something like this, a virt key maybe) and then send the necessary string.

    I'm not really quite sure I understand your question, though. Could you explain it a little better?
    1978 Silver Anniversary Corvette

  3. #3
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question I meant...

    Ok. AIM has 2 edit boxes. The bottom is where you type your messages and top is where the full chat text and messages from other users send their messages. That's the one I want to get the text from.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  4. #4
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    GetWindowText might do what you want. Look it up on MSDN...
    1978 Silver Anniversary Corvette

  5. #5
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question I need to...

    I need to get the handle to the window. I tried EnumChildWindows but none of them are it. How do I find the right window? Also, GetWindowText didn't work. I think they use RichEdit.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  6. #6
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Arg! I know how to do this ::hits head numerous times::

    Let me see, try:

    hwndctrl = GetDlgItem(hwnd, id);

    I think this is how you get the handle of the control. Try this out and if it doesn't work, then I'll do some extensive research for you
    1978 Silver Anniversary Corvette

  7. #7
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Post I first need..

    First, I need the id of the window.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  8. #8
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Ummm...isn't your ID a global constant?
    1978 Silver Anniversary Corvette

  9. #9
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    What ID?

    What ID?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  10. #10
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Alright, when you created the child window with CreateWindow(Ex), you had to specify the child window's menu with type HMENU in the nth parameter. That's what you need to put as ID in the function's 2nd parameter.
    1978 Silver Anniversary Corvette

  11. #11
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    What are u talkin' bout?

    I need to get the chat text window in an IM window of AIM.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  12. #12
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Oh, you mean the AIM window! I thought you were trying to create your own window. Sorry for the confusion...
    1978 Silver Anniversary Corvette

  13. #13
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    Believe it or not, it may be impossible. I've tried using Spy++ but it can't find it.

  14. #14
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Like I said before I don't know much Winsock, but maybe you could catch what's coming in that goes to AIM, but before it goes to aim, you could process that data and use it. I wouldn't know how to go about this though, it is just a logical thought...
    1978 Silver Anniversary Corvette

  15. #15
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Arrow I have...

    I have seen this in other AIM proggies...
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text adventure engine idea. thoughts?
    By suzakugaiden in forum Game Programming
    Replies: 16
    Last Post: 01-15-2006, 05:13 AM
  2. Text positioning and Text scrolling
    By RealityFusion in forum C++ Programming
    Replies: 3
    Last Post: 08-13-2004, 12:35 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Scrolling The Text
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 07-14-2002, 04:33 PM
  5. Replies: 1
    Last Post: 07-13-2002, 05:45 PM