OE さん
こんにちは。
↓こんな感じで取得できませんか?
---------------------------------------------------------------------
uses
System.SysUtils, Winapi.Windows;
function GetForegroundWindowCaption: String;
var
Wnd:HWND;
Caption: String;
Len: Integer;
begin
Wnd := GetForegroundWindow;
SetLength(Caption, $100);
Len := GetWindowText(iWnd, PChar(oCaption), Length(oCaption) - 1);
SetLength(Caption, Len);
Result := Caption.Trim;
end;
---------------------------------------------------------------------
Regards,
HOSOKAWA Jun
Application Division 3 Manager
embarcadero MVP for Delphi
[S/G] SERIALGAMES Inc.
TEL: 03-5812-4368
FAX: 03-5812-0970
---------------------------------------------------------------
このメールには、本来の宛先の方のみに限定された機密情報が含まれて
いる場合がございます。お心あたりのない場合は、送信者にご連絡のうえ、
このメールを削除してくださいますようお願い申し上げます。
PLEASE READ:This e-mail is confidential and intended for
the named recipient only. If you are not an intended recipient,
please notify the sender and delete this e-mail.
---------------------------------------------------------------