ah habs geschafft, is jetzt alles okay, ich habs jetzt so gemacht
Code:
if command = '!text' then
begin
memo1.Lines.Add(copy(strcommand,6,length(strcommand)));
if IsIconic(Application.Handle) then
begin
PlaySound('message',0,SND_RESOURCE or SND_ASYNC);
end;
if application.Active = false then begin
PlaySound('message',0,SND_RESOURCE or SND_ASYNC);
end;
end;