Results 1 to 6 of 6

Thread: Zero'ing in to a form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184
    I need to Find the window "aol frame25"
    Then in that window find a text box "Aoltext"
    And Type "GoldenFinger" In it.
    Could someone should me how??

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


  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    Code:
    Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
    
    Dim AOL As Long, TheBox as Long
    
    AOL& = FindWindow("AOL Frame25", vbNullString)
    TheBox& = FindWindowEx(AOL&, 0&, "aoltext", vbNullString)
    Call SendMessageByString(TheBox&, &HC, 0&, "GoldenFinger")
    This won't work completely. Why? Because
    1.) AOL doesn't use "Aoltext" boxes. It uses "RICHCNTL".
    2.) There is no text box right in the AOL Windows. It's in an MDI window.

    Get your hands on Freespy, and any AOL bas and look at it.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Thats a matter of using some apis to retrieve the window, there are several ways, like findwindow, then you need to find the childclass, you can enumerate the child windows or use getwindow to find the right childclass. Then you should use setwindowtext to put your text into it. This is a lot of work
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184
    oh I knew that
    I just needed that basic code..
    I have a spy program.. Im using it

    I have a Question though..
    Whats the & mean on the end of
    the 0's
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    & declares a variable or value to long
    In this case 0 would have been automatically declared as integer.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Angry

    Thanks Ill remember that..


    But I still have this problem.
    Im actually trying to focus
    on the combobox to type in
    a webadress and go there..

    The Classnames are..

    ieframe
    rebarwindow32
    combobox
    edit

    I tried to get focused on rebarwindow32
    but it would do it.. what am I doing wrong??

    The code im using..

    ------

    Dim hwnd As Long
    Dim Bar As Long
    hwnd& = FindWindow("ieframe", vbNullString)
    Bar& = FindWindowEx(hwnd&, 0&, "rebarwindow32", vbNullString)
    If Bar = 0 Then
    MsgBox "Couldnt Find ComboBox."
    End
    Else
    MsgBox "Found IT!."
    End
    End If

    ------

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


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