Pancakes
2007-10-03 02:18:22
Well this is a simple procedure that could be used for autoresponders etc.
Basically, you provide it with an array of strings, and it will pick one of them and 'typesend' it.
So you could call it like this:
This simple procedure could be very useful for autoresponders, and the idea could be implemented in many different ways.
Cheers, Pancakes.
Basically, you provide it with an array of strings, and it will pick one of them and 'typesend' it.
procedure RTypeSend(TypeList : TStringArray);
var i : Integer;
begin
i := Random(GetArrayLength(TypeList));
TypeSend(TypeList[i]);
end;
So you could call it like this:
RTypeSend(['hehe', 'heh', 'ha', 'hah', 'hihi', 'rofl', 'lol', 'loll', 'haha', 'lolz', 'lol/']);
This simple procedure could be very useful for autoresponders, and the idea could be implemented in many different ways.
Cheers, Pancakes.