LIKE THIS:
SCAR Code:
program LoginLogout;
var
x,y: Integer;
procedure Login;
begin
MoveMouseSmooth(445,288);
ClickMouse(445,288,true);
MoveMouseSmooth(372,261);
ClickMouse(372,261,true);
Wait(500);
SendKeys(+chr(13));//Username
SendKeys();//Password
Wait(500);
if(FindColor(x,y,1677215,234,303,371,337))then
MoveMouseSmooth(308,323);
ClickMouse(308,323,true);
Wait(500);
MoveMouseSmooth(397,331);
Wait(2000+random(500))
ClickMouse(397,331,true);
end;
procedure Logout;
begin
if(FindColor(x,y,3691124,634,471,663,495))then;
MoveMouseSmooth(648,483);
ClickMouse(648,483,true);
if(FindColor(x,y,14676215,583,364,712,388))then;
MoveMouseSmooth(645,376);
ClickMouse(645,376,true);
end;
begin
Login;
Wait(500+random(5000))
Logout;
end.
\
btw like ashur said you could use that