Forum: Multimedia
by drama22,
5. Nov 2014
ok , now i have chat application and possibly the client are sending messages to each others , so he type his message and press on send button to send his message if he press the send button repeatedly his message will flood The text box so i think about it and i thought that i have to adjust when he click on send button and pause send operation if his click on send button Too fast , maybe my...
Forum: Multimedia
by drama22,
4. Nov 2014
i didnt figure the result part i need help with it i was thinking to do somthing like that with is flood
function IsFlood:Boolean;
var
i, x : integer;
begin
Result := False;
i := trunc(GetTickCount/2);
x := trunc((i - LastFloodTime)/4);
Forum: Multimedia
by drama22,
4. Nov 2014
hi i decided to add some flood protection to my chat application so i do something like this
begin
if IsFlood then
begin
ShowInfo('Anti-Flood', 20);
Exit;
end;
end;