|
-
May 5th, 2000, 04:28 AM
#1
Thread Starter
Addicted Member
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!
-
May 5th, 2000, 04:59 AM
#2
Addicted Member
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.
-
May 5th, 2000, 05:03 AM
#3
transcendental analytic
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.
-
May 5th, 2000, 05:07 AM
#4
Thread Starter
Addicted Member
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
-
May 5th, 2000, 05:13 AM
#5
transcendental analytic
& 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.
-
May 5th, 2000, 05:25 AM
#6
Thread Starter
Addicted Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|