

LRESULT
APIENTRY UserListProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
WNDPROC wndprocPrev = get_prev_wndproc(hwnd);
switch (uMsg) {
case LVM_DELETEITEM:
break;
case LVM_SETITEM: {
LVITEM *pLVItem = (LVITEM*) lParam;
user_entered(pLVItem->pszText);
}
break;
default:
;
}
return CallWindowProc(wndprocPrev, hwnd, uMsg, wParam, lParam);
}
case EM_REPLACESEL:
if (*LPCSTR(lParam) == 0) {
DWORD start_sel = 0, end_sel = 0;
CallWindowProc(wndprocPrev, hwnd, EM_GETSEL,
WPARAM(&start_sel), LPARAM(&end_sel));
if (start_sel == 0 && end_sel > 0) {
last_index -= end_sel;
}
}
break;


Function GetChatText(ByVal room As String)
On Error Resume Next
Dim atla As Long
Dim atlaxwin As Long
Dim X As Long
Dim richedita As Long
Dim Button As Long
Dim xx As Long
Dim xxx As Long
Dim xxxx As Long
Dim xxxxx As Long
Dim xxxxxx As Long
Dim xxxxxxx As Long
Dim xxxxxxxx As Long
Dim xxxxxxxxx As Long
Dim xxxxxxxxxx As Long
Dim xxxxxxxxxxx As Long
Dim xxxxxxxxxxxx As Long
Dim xxxxxxxxxxxxx As String
mywindowclass = FindWindow("DlgGroupChat Window Class", room)
xx = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
xxx = FindWindowEx(xx, 0&, "wtl_splitterwindow", vbNullString)
xxxx = FindWindowEx(xxx, 0&, "wtl_splitterwindow", vbNullString)
xxxxx = FindWindowEx(xxxx, 0&, "wtl_splitterwindow", vbNullString)
xxxxxx = GetWindow(xxxxx, GW_CHILD)
xxxxxxx = GetWindow(xxxxxx, GW_HWNDNEXT)
xxxxxxxx = FindWindowEx(xxxxxxx, 0&, "atlaxwin71", vbNullString)
xxxxxxxxx = FindWindowEx(xxxxxxx, xxxxxxxx, "atlaxwin71", vbNullString)
xxxxxxxxxx = FindWindowEx(xxxxxxxxx, 0&, "#32770", vbNullString)
xxxxxxxxxxx = FindWindowEx(xxxxxxxxxx, 0&, "richedit20a", vbNullString)
GetChatText = GetRoomText(xxxxxxxxxxx) 'getlastlinecontroltext(richedita)
MsgBox test & xxxxxxxxxxx
End Function
Function GetRoomText(Ihwnd As Long) As String
Dim Textlen As Long
Dim Text As String
Textlen = SendMessage(Ihwnd, WM_GETTEXTLENGTH, 0, 0)
If Textlen = 0 Then
GetRoomText = "Enter a Room"
Exit Function
End If
Textlen = Textlen + 1
Text = Space$(Textlen)
Textlen = SendMessage(Ihwnd, WM_GETTEXT, Textlen, ByVal Text)
GetRoomText = Left$(Text, Textlen)
End Function
NVYE wrote:this looks interesting... any chance in VB.NET or C# ?

This code run in paltalk process, so VB.NET or C# are not the languages for the task.
It can be used by and comunicate with a VB.NET or C# application.

NVYE wrote:Sounds like a class library in C++. If you don't mind can you upload the dll file and show us how to use it.
I have a very lack knowledge on C++ for the WIN processes hooking. I'm wondering is it comparable with WIN32 and 64 bit ? thanks





NVYE wrote:method, if you use Paltalk integration from autopilot ... it is working fine. He also provided you with source code. Make sure you check it out. It contained a bunch of useful information. I'm currently using his library for some of my programs.


Return to Visual Basic Programming
Users browsing this forum: No registered users and 0 guests