SRL Archive - Other Scripts

A Easy Way to feed the poor... {Script Request}


Phade

2007-10-13 22:31:11

www.FreeRice.com

I was wondering if there was a script we could make that would randomly select an answer from the four choices, so that I and whoever would like to help feed the poor could run it at night when I am not at the computer.

A script like this should be fairly simple, but I am afraid I have no SCAR scripting experience. But this would be an easy way to help out the people who aren't as blessed as us.

Thanks,

-Phade

Harry

2007-10-13 22:32:19

I'll look it over. ;)

Edit: Nope, randomly guessing would be a waste of time. And if you abuse that website, they will prolly shut it down :p

Phade

2007-10-13 22:39:58

Although, it is a website that I think is very appreciated, considering they do feed the poor, etc etc.

Sebo

2007-11-04 12:51:48

I got 2530 grains donated! :D level 34

mat_de_b

2007-11-04 16:00:33

The only way you could really do this is to:
Get the pages source and find the original word and the changces from there
Then do a synonym check on the world wide web somewhere then you check if you find any of the answers in the synonyms and then click that one if so…

Boreas

2007-11-04 23:14:48

function FindMatch(Word:string; Choices:array of string):integer;
var page:string;
i,tmppos,antpos:integer;
begin
page:=getpage('http://thesaurus.reference.com/browse/'+Word);
//antpos:=pos('Antonyms',page);
for i:=0 to getarraylength(Choices)-1 do
begin
tmppos:=pos(Choices[i],page);
if (tmppos>0)then//and (tmppos<antpos) then
begin
result:=i;
//clickmouse(240,315+(i*43),true);
exit;
end;
end;
end;

That plus get source like mat said, or make a charset, actually 2.

mat_de_b

2007-11-05 01:34:35

I looked into it, you cant use get source because its dynamic, unless there is a way to return the currnet source viewed your gonna need a character set…