Dibatalkan

SendMessage, set text into edit control of directX window

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

Kemahiran: Pengaturcaraan C++

Lihat lebih lanjut: sendmessage edit, background sendmessage directx, sendmessage directx, sleep programming, make set, directx programming, cplusplus set, answer set programming, edit control set text, h game, text game, full set, control m, alexod, window programming, click hidden, set game, hidden game, full text, sendmessage set text, edit sendmessage, directx game programming, change control, text change, sendmessage text edit

Tentang Majikan:
( 8 ulasan ) Truseni, Moldova, Republic of

ID Projek: #1543222

1 pekerja bebas membida secara purata $35 untuk pekerjaan ini

coolbuddy19

Hi I can do this

$35 USD dalam sehari
(11 Ulasan)
3.1