0

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! :)

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Luciano555
0

Please note that I used Spy++ to find the class name for the FindWindowEx, if that helps. I also am using Dev-C++ to compile my project, in some cases I may use VC2010 Beta 2 Pro.

Thanks,
Micah

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.