mam pytanko jak odczytć do zmiennej Tstrings text z Tmemo ale innego programu mając tylko Handle programu???
0
0
Zdobądź uchwyt memo w tamtym programie, to jedyne wyjście
0
Jak już mam uchwyt memo to jaki ma być kod??
0
A zajrzeć do pomocy to nie łaska?
char buf[100];
GetWindowText(MemoHandle, buf, 99);
0
Jesli oba programy sa twoje to zrob plik wymiany i po klopocie
0
Jeden nie mój.Marooned ale Ten kod nie działa.
0
Jeden nie mój.Marooned ale Ten kod nie działa.
var
MLength : Integer;
MText : String;
Memo : Hwnd;
SList : TStringList
begin
Memo := FindWindow...bla bla bla
MLength := SendMessage(Memo, WM_GETTEXTLENGTH, 0, 0) + 1;
SetLength(MText, MLength);
SendMessage(Memo, WM_GETTEXT, MLength, LongInt(@MText[1]));
SList := TStringList.Create;
SList.Text := MText;
end;