Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uses sysutils, dialogs;
- function StringInArray(const Value : string; const Strings : array of string) : Boolean;
- var
- Loop : String;
- begin
- for Loop in Strings do
- begin
- if Value = Loop then
- begin
- Exit;
- end;
- end;
- Result := false;
- end;
- const numberOfNames = 10000;
- var i,j: integer = 0;
- usedNames: array[0..numberOfNames] of string;
- currentName,sName,fName: string;
- mailSubj: string = 'Hello';
- textToWrite: string = 'Hello';
- begin
- //InputQ?uery('Spam bot', 'Enter the mail subject', mailSubj);
- //InputQuery('Spa??????m bot', 'Enter the mail and PM t?ext', textToW?rite);??
- while true do begin
- currentName:= CharList.Items(i).Name;
- if not (currentName = '') then begin
- if not (StringInArray(currentName,usedNames)) then begin
- Engine.Say(textToWrite,2,currentName);
- //Engine.SendMail(currentName,mailSubj,textToWrite,[57,1]);
- usedNames[j]:= currentName;
- inc(i);
- inc(j);
- delay(5000);
- end else begin
- print('Char already used!');
- inc(i);
- delay(1000);
- end;
- end else begin
- print('No chars to pm!');
- i:= 0;
- delay(1000);
- end;
- delay(200);
- Engine.Say(textToWrite,1,'');
- delay(200);
- Engine.Say(textToWrite,8,'');
- end;
- end.?
Advertisement
Add Comment
Please, Sign In to add comment