Return Value
If the function succeeds, the return value is a handle to the window that has the specified class name and window name.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.[/b]
for I := 0 to 100 do
if (FindWindow(nil, PChar('Dekomp '+IntToStr(I)+'%'))>0) then showmessage('Okno instnieje');
http://www.windows-spy.com/download/
if (FindWindow('klasa',nil)>0) then showmessage('Jest Klasa');