Results 1 to 4 of 4

Thread: How do you do this?

  1. #1
    Guest

    Question

    I am not making an AOL program or anything but I always wondered how those programmers do one thing. How do those programs find the AOL window without knowing it's caption off hand? For example, if you use:

    appactivate "America Online" it wont work because AOL's caption changes as you go from chat room to chat room. So how do those programs find the window no matter what the caption of AOL is? I know it has something to do with handles and hWnd, but i haven't learned that yet.

    So lets say i want to make a VB program that has a text box and a command button only. I want to enter a message in the text box and when i click on the button, it will find Napsters window and enter the text into the box where i would type my message to talk in napster. First how would i find the napster window no matter what the caption was? Then how would i be able to set focus to the box where you type your messages in napster, and my program will enter what i typed into napster, and then send my message?

    If you dont understand what im talking about, then just reply and tell me, so i can ******** myself.

    Also how do those AOL programs pick up the last typed message in the chat rooms and stuff? If you know how all those AOL program features work, please reply and tell me where i can read about all this stuff. I know it is too much code to post here, but give me a direction where i can learn how to find window handles and stuff. Any help is greatly apreciated.

  2. #2
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184
    Every window has a "handle"
    AOL's is "aolframe25"
    The API "Findwindow" ..
    You can use it with a nullstring
    and the handle and find the AOL
    window. Its Easy.
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  3. #3
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184
    Send me your Email Address
    and Ill send you a program
    that will tell you the Following
    about any program.

    Window Hand
    Focus
    Window Text
    Window CLass
    Window Style
    Window ID
    Parent WIndow Handle
    Parent Window Text
    Parent Window Class Name
    Module

    So you can get all that info.

    Also.. If you want to send a message to
    Napster.. Use the api SendMessage.

    http://www.vbapi.com

    OK?

    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  4. #4
    Guest

    thanks

    [email protected]


    thank you

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