|
-
Jun 20th, 2003, 02:01 AM
#1
Thread Starter
New Member
AIM Log in .NET
I've been searching all over for a successful way to find the chat window of AIM and get it's text. I've found plenty on using the API (FindWindow, FindWindowEx, etc). What I have so far is:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer
Public Function FindIM() As Long
Dim hWnd As Integer
Dim AteClass As Integer
FindIM = FindWindow("AIM_IMessage", vbNullString)
Dim AteClass2 As Integer
Dim WndAteClass As Integer
WndAteClass = FindWindowEx(FindIM, 0, "WndAteClass", vbNullString)
AteClass = FindWindowEx(WndAteClass, 0, "Ate32Class", vbNullString)
End Function
which seems to get the window handles fine, but all attempts to retrieve the text have failed (empty string returned). Most of the code in the forums search is VB6 which needs some tweaking, and i'm probably tweaking something the wrong way. If anyone has any suggestions, or an alternative, easier, or more effective way to do this in .NET, I would really appreciate it
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
|