alrabaca
July 26th, 2007, 04:04 PM
Hi there,
Im currently working on a little project that sends strings to an external window editbox(NOTE: Its not a message spammer of anykind) its just something I thought I'd make to start learning C++ :rolleyes: .
Basically I'm 96% done, just need to find a way of getting the external window editbox name so I could use the function:
FindWindowEx();
Here is my code so far, its not the full code but the rest of the code is not needed t solve this problem:
HWND exWND = FindWindow(NULL, "Window title");
HWND exEB = FindWindowEx(exWND, NULL, "unknownname", NULL);
int count = TForm1::ListBox1->Items->Count;
for(int x = 0; x < count; x++)
{
char *combMessage = (char *)TForm1::ListBox1->Items->Strings[x].c_str();
SendMessage(exEB, WM_SETTEXT, 0, (long)combMessage);
}
So if you could help me out a bit, I would be greatful.
Thanks in advance
Im currently working on a little project that sends strings to an external window editbox(NOTE: Its not a message spammer of anykind) its just something I thought I'd make to start learning C++ :rolleyes: .
Basically I'm 96% done, just need to find a way of getting the external window editbox name so I could use the function:
FindWindowEx();
Here is my code so far, its not the full code but the rest of the code is not needed t solve this problem:
HWND exWND = FindWindow(NULL, "Window title");
HWND exEB = FindWindowEx(exWND, NULL, "unknownname", NULL);
int count = TForm1::ListBox1->Items->Count;
for(int x = 0; x < count; x++)
{
char *combMessage = (char *)TForm1::ListBox1->Items->Strings[x].c_str();
SendMessage(exEB, WM_SETTEXT, 0, (long)combMessage);
}
So if you could help me out a bit, I would be greatful.
Thanks in advance