Kod: Tümünü seç
var
hnd:Thandle;
w_type:Array[0..99] of Char;
w_name:Array[0..99] of Char;
w_Class:Array[0..99] of Char;
begin
hnd:=0;
hnd:=WindowFromPoint(Mouse.CursorPos);
GetWindowText(hnd,w_name,1000);
GetWindowText(hnd,w_Class,1000);
Edit3.Text := StrPas(w_Class);
Edit2.Text := inttostr(hnd);