1

Topic: How to make active application with ' ...'

How to make active application with  ' ...'

2

Re: How to make active application with ' ...'

Which that  about it ( does not work - it is necessary to search for a position in line, instead of in pANSIChar).
var Handle: HWND;
lpChar: PANSIChar;
begin
Handle: = self. Handle;
while (Handle <> 0) do
begin
GetWindowText (Handle, lpChar, 128);
if ANSIPos ('  ', lpChar) = 1 then//it is necessary to receive string from pANSIChar
SendMessage (Handle, WM_ACTIVATE, 0, 0);
Handle: = GetNextWindow (Handle, GW_HWNDNEXT);
end;
end;
----------------
Also the application title can be found sending message WM_GETTEXT through SendMessage.