Thread: Handle on MSN Messenger's Sign In "button"?

  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    Handle on MSN Messenger's Sign In "button"?

    I'm making a program that opens MSN Messenger, hits the Sign In "button", types in my info and hits OK. I have everything done(excluding the Sign In button part) but I can't get a handle on MSN's main Sign In button. I was just fishing for info by getting a handle on any of MSN Messengers child windows but it seems it only has one child window. This child window's class name, when GetClassName is used on it, turns out to be "DirectUIHWND". I have never heard of this kind of class name before. I'm guessing that this Sign In "button" isn't a button after all, just something acting as one? Why would Microsoft do this when making their IM program? What I just said might seem confusing but just read carefully. Thanks again.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  2. #2
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Here is a picture of which button on MSN Messenger I am talking about.
    http://img.photobucket.com/albums/v1.../msnbutton.bmp
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You can download a version of spy++ here:
    http://www.techwarelabs.com/download...on=file&id=169

    It will allow you inspect windows of other processes a lot easier.

    As for the "button" - it doesn't surprise me that it isn't a "Button" window class or even a window. For these kinds of controls, you can either simulate mouse clicking, mouse_event(), or you can get the handle to the "owning" window and post WM_LBUTTONDOWN etc... to simulate a mouse click.

    gg

  4. #4
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    I got spy++ and spent some time looking through a whole bunch of MSN Messenger's classes. It has like 10 different classes. I also tried mouse_event but my program also LAUNCHES MSN Messenger so I don't think it's fully loaded by the time the mouse_event occurs, therefore the button is still not affected. Has anybody ever looked at MSN Messenger and know how you can manipulate that Sign In button in MSN Messenger's class called "DirectUIHWND". The name was confirmed by spy++. Thanks for the reply.
    Last edited by jmd15; 07-17-2005 at 10:37 AM.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 04:02 PM
  2. My own itoa()
    By maxorator in forum C++ Programming
    Replies: 18
    Last Post: 10-15-2006, 11:49 AM
  3. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM
  4. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  5. Attn: MSN Dial-Up Users (long)
    By SinAmerica in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 11-25-2003, 04:26 PM