SendMessage set text into edit control of directX window
$30 USD
Pagado a la entrega
I want to set up text in edit control of directx window programatically. I can get correct handle of edit control, but text is inserted only if I click on Edit control, How to insert text without clicking on Edit control, doing this in background. I'm doing this:
HWND hWnd = FindWindow(NULL,"Game");
HWND edit = FindWindowEx(hWnd, NULL, "Edit", NULL);
SendMessage(edit, WM_CHAR, (TCHAR) 'H', 0);
Sleep(100);
SendMessage(edit, WM_CHAR, (TCHAR) 'E', 0);
Sleep(100);
SendMessage(edit, WM_CHAR, (TCHAR) 'L', 0);
Sleep(100);
SendMessage(edit, WM_CHAR, (TCHAR) 'L', 0);
Sleep(100);
SendMessage(edit, WM_CHAR, (TCHAR) 'O', 0);
Sleep(100);
this code is working only if I click Edit control at same time when code running.... but how to make it programatically and full automated to insert text without clicking on Edit control. It is possible to do this all in background, and if window is hidden?
Also, I want to run multiple same programs, and I want to change Edit control text for all this running programs.
If you know answer and can make it working, then let me know
I will pay only for working code as I need it to work.
So, payment will be if I'm satisfied with the results of code, not just working code, it must work as I need. It must work in background, silently.
Nº del proyecto: #1543663