Hey guys, I am trying to make a simple program that interacts with TeamSpeak v2 (this is the current version that I have installed on my computer) and changes its text. The only problem is that it finds the window using FindWindow perfectly, but it doesnt do anything to the FindWindowEx. I receive no errors within my code. Any help?
#include <windows.h>
int main()
{
HWND ts;
HWND status;
ts = FindWindow("TMainForm","TeamSpeak 2");
if(!ts)
{
return 0;
}
SendMessage(ts,WM_SETTEXT,0,(LPARAM)"TeamSpeak 2 Test!");
status = FindWindowEx(ts,NULL,"TStatusBar",NULL);
if(!status)
{
return 0;
}
SendMessage(status,WM_SETTEXT,0,(LPARAM)"Test By: Luciano");
}
Thanks for reading my issue! :)