I am new in this forum and i was looking for codes in c++ to interact with paltalk...
some codes were working i just had to change the Handle Code...
and i was interested in this code written 3 years ago old but very useful:
- Code: Select all
int main() {
HWND mywindowclass = FindWindow("DlgGroupChat Window Class", NULL);
HWND wtlsplitterwindow = FindWindowEx(mywindowclass, 0, "wtl_splitterwindow", NULL);
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0, "wtl_splitterwindow", NULL);
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0, "wtl_splitterwindow", NULL);
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0, "wtl_splitterwindow", NULL);
HWND atlfe = GetWindow(wtlsplitterwindow, GW_CHILD);
HWND atlaxwin = FindWindowEx(atlfe, 0, "atlaxwin71", NULL);
atlaxwin = FindWindowEx(atlfe, atlaxwin, "atlaxwin71", NULL);
HWND x = FindWindowEx(atlaxwin, 0, "#32770", NULL);
HWND richedita = FindWindowEx(x, 0, "richedit20a", NULL);
// Error Checking:
if (!mywindowclass) { printf( "E_WINDOW_NOT_FOUND"); }
if (!wtlsplitterwindow) { printf( "E_WINDOW_NOT_FOUND"); }
if (!atlfe) { printf( "E_UNABLE_TO_FIND_PARENT"); }
if (!richedita) { printf( "E_RICHEDIT_NOT_FOUND"); }
long lngCount = SendMessage(richedita, EM_GETLINECOUNT, 0, 0);
long lngLength = SendMessage(richedita, EM_LINELENGTH, lngCount-2, 0);
TCHAR strBuffer[1024]; *(WORD *) strBuffer = 1024;
LRESULT bla = SendMessage(richedita, EM_GETLINE, lngCount-2, (LPARAM)(LPCSTR)strBuffer);
printf(" Text: %s \n\n", strBuffer);
system("pause"); // Testing blah
return 0;
}
and i have some questiong concerning this code:
1-How did you know that "DlgGroupChat Window Class" is the class name or class atom
2-same question with "wtl_splitterwindow"
3-i noticed that there is a part of this code not working concerg richedita i tried looking for can in the place of atlaxwin71 and i couldn't find
i appreciate any help
Thanks





