You don't need it to pull words out of a text file, you can just do something like..
SCAR Code:
{-------------------------------------------------------------------------------
Procedure/Function: function GenerateRandomWord : String;
Purpose: Generates a random word using a case, outputs a string.
How to use: Ex. WriteLn(GenerateRandomWord);
By: Ultra.
-------------------------------------------------------------------------------}
function GenerateRandomWord : String;
begin
case RandomRange(1, 10) of
1: Result := 'youtube';
2: Result := 'villavu srl';
3: Result := 'facebook';
4: Result := 'how big is the earth?';
5: Result := 'google maps';
6: Result := 'new planet found';
7: Result := 'over population';
8: Result := 'global warming';
9: Result := 'homework help';
10: Result := 'how to code html?';
end;
end;
Just add on more results to that, although that can be very annoying :P.
And to check colors/click places use:
SCAR Code:
Mouse(X, Y, RandomX, RandomY, True);//Moves the mouse like a human and presses a mouse button.
GetColor(X, Y);//Finds the color at the given position and returns it as an integer.