Ashaman88
2013-04-03 21:44:37
Someone pointed out that we could probably auto grab the nickname from the username displayed when they login. I came up with this:
Basically just takes three letters from their name (if it's longer than three it takes away first letter and gets the next 3). I'm sure there is a better way to do it…figuring out which letters are lowercase and such. Just an idea though, what do yall think
var
h: integer;
Nick: string;
begin
setupsrl;
Nick:=(Trim(GetTextAtExWrap(9,460,132,473,0,5,2,clMessage,0,SmallChars07)));
writeln(Nick);
h:=high(Nick);
if h=3 then
Nick:=Copy(Nick, 1, min(h,3)) else
Nick:=Copy(Nick, 2, min(h,3));
writeln(Nick);
end. Basically just takes three letters from their name (if it's longer than three it takes away first letter and gets the next 3). I'm sure there is a better way to do it…figuring out which letters are lowercase and such. Just an idea though, what do yall think